On 15 January 2007 19:19, Nils Kehrein wrote: > 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 1 exit status > ~~ 8< ~~ > > Which makes no sense at all because i tested it on a native Linux > machine and it compiled well.
A side-effect of dynamic linking using .so shared objects. Try putting your source file earlier on the commandline and the libraries later. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/