gsl in c++

G

Gary Wessle

Hi
using gsl library to load formated data from a file into a
matrix. downloaded the library and reading the docs. I noticed in the
examples to include
#include <stdio.h>
#include <gsl/gsl_matrix.h>
1) the <filename.h> is a C and not a C++ style, do I expect problems?
and what?
2) I am not able to locate gsl/gsl_matrix.h after installing on
debian/testing.
i.e. when I trying to compile, I get
read_data.h:5:28: error: gsl/gsl_matrix.h: No such file or directory

thanks
 
M

mlimber

Gary said:
using gsl library to load formated data from a file into a
matrix. downloaded the library and reading the docs. I noticed in the
examples to include
#include <stdio.h>
#include <gsl/gsl_matrix.h>
1) the <filename.h> is a C and not a C++ style, do I expect problems?
and what?

<cfilename> would just put the functions, types, etc. in the std
namespace. Using the C headers is also permissible in C++, though it
pollutes the global namespace.
2) I am not able to locate gsl/gsl_matrix.h after installing on
debian/testing.
i.e. when I trying to compile, I get
read_data.h:5:28: error: gsl/gsl_matrix.h: No such file or directory

This is a platform-specific problem. Check your compiler docs on how to
specify include paths (hint: -I). If you need more help on this, you'll
need to ask in a gcc group (cf.
http://parashift.com/c++-faq-lite/how-to-post.html#faq-5.9).

Cheers! --M
 
R

Rolf Magnus

Gary said:
Hi
using gsl library to load formated data from a file into a
matrix. downloaded the library and reading the docs. I noticed in the
examples to include
#include <stdio.h>
#include <gsl/gsl_matrix.h>
1) the <filename.h> is a C and not a C++ style, do I expect problems?
and what?
2) I am not able to locate gsl/gsl_matrix.h after installing on
debian/testing.
i.e. when I trying to compile, I get
read_data.h:5:28: error: gsl/gsl_matrix.h: No such file or directory

This is quite off-topic here, but did you install the devel package?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,785
Latest member
undedgini

Latest Threads

Top