1.5.23: Program with GSL does not compile

Nils Kehrein nkehrein@uos.de
Mon Jan 15 19:19:00 GMT 2007


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.

Regards, Nils.

-- 
It's like boxing a glacier. Enjoy that metaphor, by the way,
because your grandchildren will have no idea what a glacier is.
 -- Stephen Colbert
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20070115/a7483244/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test_gsl.cpp
URL: <http://cygwin.com/pipermail/cygwin/attachments/20070115/a7483244/attachment-0001.ksh>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list