Re: g++ compilation problem

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/g-compilation-problem-tp6800p6801.html

On Thu, 2009-03-26 at 02:23 +0000, Amadeus W.M. wrote:

> Now I'm trying to compile EquityOption.cpp out of the QuantLib source
> tree, only to figure out how to compile things against QL. (By the way, a
> line or two in the Docs showing how to compile standalone programs with
> g++ against QL would be nice.)
>
> The automatically generated Makefile in the Examples directory is way too
> cryptic, so I tried the obvious:
>
> g++ -g -Wall -o equityOption -I/usr/local/include/boost-1_38
> EquityOption.cpp -lQuantLib

That should be the way to do it---and in fact, it works here on my
Ubuntu box with gcc 4.3.2.  I'm using the svn repository, though--I'll
check 0.3.7 tomorrow and let you know.

Luigi


--

Father's got the sack from the water-works
For smoking of his old cherry-briar;
Father's got the sack from the water-works
'Cos he might set the water-works on fire.



------------------------------------------------------------------------------
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users