Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=5637629
By: manfromohio
Hi
I am newbie to C++ for scientific computing. I have a problem with compiling
my code. I installed GSL from Gnuwin32 in its default location (C:\Program
Files\)
and tried to compile a sample program form the GNU help manual. Although the
code itself is not the problem, I have pasted it below. It seems like my Borland
C++ compiler is unable to read the header files.
#include<iostream.h>
#include <gsl/gsl_sf_bessel.h>
int main (void)
{double x = 5.0;
double y = gsl_sf_bessel_J0 (x);
printf ("J0(%g) = %.18e\n", x, y);
return 0; }
I store the above as temp.cpp in my C:\ and compile using
C:> bcc32 -Ic:\Progra~1\GnuWin32\include\gsl temp.cpp
The error message I get is:
Error E2209 temp.cpp 2: Unable to open include file 'gsl/gsl_sf_bessel.h'
Error E2268 temp.cpp 8: Call to undefined function 'gsl_sf_bessel_J0' in
function
main()
I use Windows XP and adding the GNuwin32\include\gsl directory to the PATH
variable
in the user variables does not help either. Any help is appreciated. It seems
like I am missing a step somewhere in linking my BCC compiler and the GSL
directory.
Regards
Kris.
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=74807
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
GnuWin32-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users