Login  Register

Re: QuantLib under cygwin

Posted by Luigi Ballabio on Apr 28, 2011; 7:15am
URL: http://quantlib.414.s1.nabble.com/QuantLib-under-cygwin-tp8701p8702.html

On Wed, 2011-04-27 at 18:12 -0400, financial engineer wrote:
> I am trying to install QuantLib under cygwin.
>  
> I followed the following instructions [...]
>  
> 4. then to run, I entered:
> $./configure --enable-static
> --with-boost-include=/opt/local/include/ --with-boost-lib=/opt/local/lib/ --prefix=/opt/local/
> and it ran and returned to ~/QuantLib-1.0.1

Ok. Now you'll have to run
$ make
to build the library (you'll need that, it's not just the headers.)


> 6. I tried to compile a test program which included
> #include <ql/quantlib.hpp>
> using namespace QuantLib;
>  
> and I get an error stating  ql/quantlib.hpp: No such file or directory

You'll have to tell your compiler where to find the headers.  Probably
something like

gcc -IQuantLib-1.0.1 test.cpp

If you do something more than just the namespace declaration, you'll
probably need the library.  For that, you'll have to say

gcc -IQuantLib-1.0.1 -LQuantLib-1.0.1/lib -lQuantLib test.cpp

Luigi

--

Of course, if people could just act consistently, they could keep
their desks clean, avoid cavities, lose weight, give up smoking,
play a musical instrument, and possibly even produce software on
a regular and timely basis.
-- Alistair Cockburn



------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users