QuantLib under cygwin

hi,

I am trying to install QuantLib under cygwin.

I followed the following instructions after downloading QuantLib-1.0.1.tar.gz

1. saved the .tar.gz file in C:\cygwin\home\BA (this is my ~ directory when I open cygwin)

2. entered the following command:
$ tar -xvzf QuantLib-1.0.1.tar.gz

3. cd QuantLib-1.0.1

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

5. cd ..

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

(I already have boost from the latest download of cygwin and when I run a test program for boost it works)

Can anyone please help me fix this problem so I can include QuantLib.

thanks in advance,
Are the relative paths that you listed in your configuration line accurate? If I'm reading this correctly you're telling the compiler that quantlib.hpp is in the directory "C:\cygwin\home\BA\opt\local\include\ql"
hi Computergeek01
thanks for your response.
you're right- it seems like i am giving the relative path wrong bcoz quantlib.hpp is in the directory
c:\cygwin\home\BA\QuantLib-1.0.1\ql
given that, should I re-run the configuration as follows:
$./configure --enable-static --with-boost-include=/QuantLib-1.0.1/ --with-boost-lib=/QuantLib-1.0.1/

Try it, let me know how it goes.
tried it.....still getting the same error
ql/quantlib.hpp: No such file or directory
any idea how it can be fixed...
Last edited on
first things first: have you found ql/quantlib.hpp on your hard-drive?

if so, where is it?
yes indeed,
it is in C:\cygwin\home\BA\QuantLib-1.0.1 directory
well then, if you have something like

gcc -IC:\cygwin\home\BA\QuantLib-1.0.1 ...

then it should at least compile

linking is a separate, but related issue...
I cd'd into the QuantLib-1.0.1 directory and ran the gcc command but it gives me the error - that's what I don't quite understand
Topic archived. No new replies allowed.