niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » C++
gsl in c++
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Fred J.
*nix forums addict


Joined: 30 Sep 2005
Posts: 96

PostPosted: Thu Jul 20, 2006 11:03 pm    Post subject: gsl in c++ Reply with 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

thanks
Back to top
mlimber
*nix forums Guru


Joined: 06 Sep 2005
Posts: 1249

PostPosted: Fri Jul 21, 2006 12:16 am    Post subject: Re: gsl in c++ Reply with quote

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

PostPosted: Fri Jul 21, 2006 8:46 am    Post subject: Re: gsl in c++ Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Sun Nov 23, 2008 3:07 pm | All times are GMT
navigation Forum index » Programming » C++
Jump to:  


Actress | Share Prices | Tax | Credit Counseling | Credit Cards
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2490s ][ Queries: 11 (0.1053s) ][ GZIP on - Debug on ]