468,497 Members | 1,897 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,497 developers. It's quick & easy.

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.his 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
Jul 20 '06 #1
3 5766
Gary Wessle wrote:
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.his a C and not a C++ style, do I expect problems?
and what?
<cfilenamewould 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/ho....html#faq-5.9).

Cheers! --M

Jul 21 '06 #2
Gary Wessle wrote:
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.his 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?

Jul 21 '06 #3

"Rolf Magnus" <ra******@t-online.dewrote in message
news:e9*************@news.t-online.com...
Gary Wessle wrote:
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.his 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?
gsl is writen in C not C++ it doesn't use templates and classes if you were
expecting them.
for C++ try ppLinear at www.pecos-place.com
Jul 24 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by William C. White | last post: by
2 posts views Thread by Albert Ahtenberg | last post: by
3 posts views Thread by James | last post: by
reply views Thread by Ollivier Robert | last post: by
1 post views Thread by Richard Galli | last post: by
4 posts views Thread by Albert Ahtenberg | last post: by
1 post views Thread by inderjit S Gabrie | last post: by
2 posts views Thread by Jack | last post: by
3 posts views Thread by Sandwick | last post: by
reply views Thread by NPC403 | last post: by
3 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.