Lewis,
Thanks!
I found where to add the library reference in the Eclipse dialog hierarchy:
Project/properties/"C/C++ Build"/"GCC C++ Linker"/Libraries/ .
I also had to add c:\cygwin\lib\lapack to the PATH environment variable so
it could find cyglas.dll.
Thank you for your patience!
Lee.
Lee Rhodes wrote:
Brian,
Thanks. Here is the output from Eclipse:
make -k all
Building file: ../main.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d"
-o"main.o" "../main.cpp"
Finished building: ../main.cpp
Building target: TestGSL.e
Brian,
Thanks. Here is the output from Eclipse:
make -k all
Building file: ../main.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d"
-o"main.o" "../main.cpp"
Finished building: ../main.cpp
Building target: TestGSL.exe
Invoking: GCC C++
Lewis,
Thanks,
OK, I was able to compile it ok from the command line as you suggested.
However, the plot thickens, and I should have mentioned, that I am
attempting to compile/build using Eclipse (using the Generated Makefile
Builder). So my problem may be configuring Eclipse, which is usin
Lee Rhodes wrote:
> The compiler/linker is able to locate the header ok, but the error message I
> get on the line that calls the function is:
>
> undefined reference to `_gsl_sf_bessel_J0'
>
> Somehow the function name got mangled with an added underscore, and of
> course, it doesn't ex
Lee Rhodes wrote:
Hello,
I have installed the GSL libs via setup and am trying to get the following
example program to work:
#include
#include
int main (void)
{
double x = 5.0;
double y = gsl_sf_bessel_J0 (x);
printf ("J0(%g) = %.18e\n", x, y);
return 0;
6 matches
Mail list logo