I have gone through the installation process for both v1.8 and v1.7 as laid out in the file INSTALL that came with each distribution. I used the option --prefix=/home/P05/stennetm/gsl as I could not write to the default directory. I then tried to compile a C++ program which makes use of the evolving solver in almost exactly the same way as is done in the example in the manual. I used the command 'g++ -L/home/P05/stennetm/gsl/lib -lgsl -lgslcblas -lm -I/home/P05/stennetm/gsl/include three.cc' and got the following errors:

/tmp/ccngDDtB.o(.text+0x11e): In function `main':
: undefined reference to `gsl_odeiv_step_rk8pd'
/tmp/ccngDDtB.o(.text+0x13b): In function `main':
: undefined reference to `gsl_odeiv_step_alloc'
/tmp/ccngDDtB.o(.text+0x15e): In function `main':
: undefined reference to `gsl_odeiv_control_y_new'
/tmp/ccngDDtB.o(.text+0x17b): In function `main':
: undefined reference to `gsl_odeiv_evolve_alloc'
/tmp/ccngDDtB.o(.text+0x45d): In function `main':
: undefined reference to `gsl_odeiv_evolve_apply'
collect2: ld returned 1 exit status

I then tried enclosing the headers in extern "C" {} braces and disabling the shared libraries, none of which made any difference. I'm running Fedora Core 3 with g++ version 3.4.4. Is there anything I should be doing to get this to work?

The full code for the C++ program is available on request as are any more details that might be required.


_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to