| Author |
Message |
Fred J. *nix forums addict
Joined: 30 Sep 2005
Posts: 96
|
Posted: Thu Jul 20, 2006 11:03 pm Post subject:
gsl in c++
|
|
|
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 |
|
| Back to top |
|
 |
mlimber *nix forums Guru
Joined: 06 Sep 2005
Posts: 1249
|
Posted: Fri Jul 21, 2006 12:16 am Post subject:
Re: gsl in c++
|
|
|
Gary Wessle wrote:
| Quote: | 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.
| Quote: | 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 |
|
| Back to top |
|
 |
Rolf Magnus *nix forums Guru
Joined: 21 Feb 2005
Posts: 1236
|
Posted: Fri Jul 21, 2006 8:46 am Post subject:
Re: gsl in c++
|
|
|
Gary Wessle wrote:
| Quote: | 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? |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|