help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] Error message during compile - Versions 1.8 & 1.7


From: Martin Stennett
Subject: [Help-gsl] Error message during compile - Versions 1.8 & 1.7
Date: Tue, 18 Jul 2006 09:59:04 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060508 Fedora/1.7.13-1.3.1.legacy

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]