Example compilation

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Example compilation

Yatis Dodia
Hi,

I'm new to quantlib and I believe I have it installed properly.  I'm using Ubuntu on an AMD64 and installed quantlib from the repository.  I also checked and boost seems to be setup properly.  When I try to compile EquityOption.cpp I get a flood of messages that are similar to the following

/tmp/ccU8AcUQ.o:(.rodata.
_ZTVN8QuantLib19FDAmericanConditionINS_21FDStepConditionEngineEEE[vtable for QuantLib::FDAmericanCondition<QuantLib::FDStepConditionEngine>]+0x40): undefined reference to `QuantLib::FDVanillaEngine::initializeBoundaryConditions() const'

I don't know how to fix the missing reference.  Also, the final line before quitting says

collect2: ld returned 1 exit status


Thanks,

-Intra

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Example compilation

Luigi Ballabio
On Thu, 2008-06-26 at 11:21 -0400, Yatis Dodia wrote:
> I'm new to quantlib and I believe I have it installed properly.  I'm
> using Ubuntu on an AMD64 and installed quantlib from the repository.
> I also checked and boost seems to be setup properly.  When I try to
> compile EquityOption.cpp I get a flood of messages

You need to tell the linker to bring QuantLib in. You can use the -l
switch, as in:

g++ EquityOption.cpp -o EquityOption -lQuantLib

Luigi


--

So little done, so much to do.
-- Cecil Rhodes



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users