This is the mail archive of the gsl-discuss@sourceware.cygnus.com mailing list for the GSL project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Dear GSL-users,
As discussed in
the november archives of this mailing list I have to include
a 'extern "C" ' before I include the GSL headerfile when I want
to use a gsl-function in C++.
#ifdef __cplusplus
gcc -c -fpic potential.cc -I/xopt/python1.5/include/python1.5
-I/home/edp/vanroose/archief/vanroose/Python-1.5.2/Numerical-14/Include/
-I/home/edp/vanroose/include/gsl/
When I look to the math.h code that the compiler refers to #ifdef _INCLUDE_HPUX_SOURCE
It seems that when math.h is included the __cplusplus variable is still set but due to the extern "C" derictive the code is compiled as C. Or am I wrong??
|
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |