Re: Linking problem with the test suite
Posted by
Toto from_moon on
URL: http://quantlib.414.s1.nabble.com/Linking-problem-with-the-test-suite-tp6398p6399.html
Hello,
You can not change a .lib filename (present in windows environnement) to a .a static library/archive filename, on Unix environnement.
I mean, .a filenames must not be present on windows environnement, and .lib names on Unix environnement.
Rather than to change filenames (always a bad idea for me), you have to check your compiler options, name of dependent libraries like boost (.lib on windows) here and paths.
Cheers,
Philippe
From: [hidden email]
To: [hidden email]
Date: Wed, 2 Apr 2008 07:52:54 +0000
Subject: [Quantlib-users] Linking problem with the test suite
Hi,
I've just installed QuantLib and I have a problem building the test-suite. I have built the examples without any problems. I use Dev-C++, the last version of Boost (1_35, but I have the same error with version 1_34) and QuantLib 0.9.0.
At the beginning I got the message "cannot find -lboost_unit_test_framework-mgw-mt" so I changed the name of the library into "libboost_unit_test_framework-mgw-mt.a" (it was "boost_unit_test_framework-mgw34-mt-1_35.lib" before). Now I have the following message:
variable 'vtable for boost::unit_test::unit_test_log_t' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
...
[Linker error] undefined reference to [hidden email]
ld returned 1 exit status
In Project Options>Parameters>Linker I have:
../lib/libQuantLib-mgw-0_9_0.a
-lboost_unit_test_framework-mgw-mt
I spent a lot of time looking on Internet, but did not manage to make it work. I would be very grateful if you could help me.
Thanks a lot.
Cheers,
Elise
Plus de 15 millions de français utilisent Windows Live Messenger ! Téléchargez Messenger, c'est gratuit !
Arrêtez le ping pong, et recevez votre réponse dans la seconde !
Windows Live Messenger
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users