Re: 1.5.23: Program with GSL does not compile

2007-01-15 Thread Nils Kehrein
Dave Korn wrote: > A side-effect of dynamic linking using .so shared objects. > Try putting your source file earlier on the commandline and the > libraries later. Oh, it was that easy ... strange. Thanks a lot for the *really* quick help! :-) Regards, Nils. -- It's like boxing a glacier. Enjoy

Re: 1.5.23: Program with GSL does not compile

2007-01-15 Thread Nils Kehrein
I tried to attach a test case but it didn't get through the mailfilter, so here it is: ~~ test_gsl.cpp 8< ~~~ #include int main(void) { gsl_matrix *M = gsl_matrix_alloc(1, 1); return 0; } ~~ >8 ~~ Regards, Nils. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem

1.5.23: Program with GSL does not compile

2007-01-15 Thread Nils Kehrein
Hi, I am trying to compile a C++ program which uses GSL, but it fails for some odd reason. It goes like $ g++ -Wall `gsl-config --cflags` `gsl-config --libs` test_gsl.cpp ~~ >8 ~~ /path/to/Temp/ccQ03psi.o:test_gsl.cpp:(.text+0x29): undefined reference to `_gsl_matrix_alloc' collect2: ld returned