Re: code::blocks and mingW

Posted by Antonio Suriano on
URL: http://quantlib.414.s1.nabble.com/code-blocks-and-mingW-tp5303p5310.html

I was too optimistic. 
Even if the library is generated now, I have a lot of problem in linking ecamples  (I'm using gcc 4.4.0 for mingW) because of vtables.

an example of errors
C:/quantlib/QuantLib-0.9.9/ql/models/marketmodels/marketmodel.hpp:41: undefined reference to `vtable for QuantLib::MarketModel'
build\vc71\Debug Win32\swapvaluation.o:swapvaluation.cpp:(.rdata$_ZTVN8QuantLib17MultiStepSwaptionE[vtable for QuantLib::MultiStepSwaption]+0x10): undefined reference to `QuantLib::MultiProductMultiStep::suggestedNumeraires() const'
build\vc71\Debug Win32\swapvaluation.o:swapvaluation.cpp:(.rdata$_ZTVN8QuantLib17MultiStepSwaptionE[vtable for QuantLib::MultiStepSwaption]+0x14): undefined reference to `QuantLib::MultiProductMultiStep::evolution() const'
build\vc71\Debug Win32\swapvaluation.o:swapvaluation.cpp:(.rdata$_ZTVN8QuantLib13MultiStepSwapE[vtable for QuantLib::MultiStepSwap]+0x10): undefined reference to `QuantLib::MultiProductMultiStep::suggestedNumeraires() const'
build\vc71\Debug Win32\swapvaluation.o:swapvaluation.cpp:(.rdata$_ZTVN8QuantLib13MultiStepSwapE[vtable for QuantLib::MultiStepSwap]+0x14): undefined reference to `QuantLib::MultiProductMultiStep::evolution() const'
build\vc71\Debug Win32\swapvaluation.o:swapvaluation.cpp:(.rdata$_ZTVN8QuantLib16MultiStepRatchetE[vtable for QuantLib::MultiStepRatchet]+0x10): undefined reference to `QuantLib::MultiProductMultiStep::suggestedNumeraires() const'
build\vc71\Debug Win32\swapvaluation.o:swapvaluation.cpp:(.rdata$_ZTVN8QuantLib16MultiStepRatchetE[vtable for QuantLib::MultiStepRatchet]+0x14): undefined reference to `QuantLib::MultiProductMultiStep::evolution() const'
build\vc71\Debug Win32\swapvaluation.o:swapvaluation.cpp:(.rdata$_ZTVN8QuantLib30MultiStepPeriodCapletSwaptionsE[vtable for QuantLib::MultiStepPeriodCapletSwaptions]+0x10): undefined reference to `QuantLib::MultiProductMultiStep::suggestedNumeraires() const'
build\vc71\Debug Win32\swapvaluation.o:swapvaluation.cpp:(.rdata$_ZTVN8QuantLib30MultiStepPeriodCapletSwaptionsE[vtable for QuantLib::MultiStepPeriodCapletSwaptions]+0x14): undefined reference to `QuantLib::MultiProductMultiStep::evolution() const'
build\vc71\Debug Win32\swapvaluation.o:swapvaluation.cpp:(.rdata$_ZTVN8QuantLib19MultiStepOptionletsE[vtable for QuantLib::MultiStepOptionlets]+0x10): undefined reference to `QuantLib::MultiProductMultiStep::suggestedNumeraires() const'
build\vc71\Debug Win32\swapvaluation.o:swapvaluation.cpp:(.rdata$_ZTVN8QuantLib19MultiStepOptionletsE[vtable for QuantLib::MultiStepOptionlets]+0x14): undefined reference to `QuantLib::MultiProductMultiStep::evolution() const'
build\vc71\Debug Win32\swapvaluation.o:swapvaluation.cpp:(.rdata$_ZTVN8QuantLib16MultiStepNothingE[vtable for QuantLib::MultiStepNothing]+0x10): undefined reference to `QuantLib::MultiProductMultiStep::suggestedNumeraires() const'
build\vc71\Debug Win32\swapvaluation.o:swapvaluation.cpp:(.rdata$_ZTVN8QuantLib16MultiStepNothingE[vtable for QuantLib::MultiStepNothing]+0x14): undefined reference to `QuantLib::MultiProductMultiStep::evolution() const'
build\vc71\Debug Win32\swapvaluation.o:swapvaluation.cpp:(.rdata$_ZTVN8QuantLib17MultiStepForwardsE[vtable for QuantLib::MultiStepForwards]+0x10): undefined reference to `QuantLib::MultiProductMultiStep::suggestedNumeraires() const'
build\vc71\Debug Win32\swapvaluation.o:swapvaluation.cpp:(.rdata$_ZTVN8QuantLib17MultiStepForwardsE[vtable for QuantLib::MultiStepForwards]+0x14): undefined reference to `QuantLib::MultiProductMultiStep::evolution() const'
build\vc71\Debug Win32\swapvaluation.o:swapvaluation.cpp:(.rdata$_ZTVN8QuantLib28MultiStepCoterminalSwaptionsE[vtable for QuantLib::MultiStepCoterminalSwaptions]+0x10): undefined reference to `QuantLib::MultiProductMultiStep::suggestedNumeraires() const'





2009/12/22 Luigi Ballabio <[hidden email]>
On Tue, 2009-12-22 at 10:27 +0100, Antonio Suriano wrote:
> Is the lib so large? about 110 megabytes the debug and 50 the release
> version.

Yes, it sounds about right.

Luigi



--

An ideal world is left as an exercise to the reader.
-- Paul Graham




------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users