Login  Register

Re: Debian package issues

Posted by Dirk Eddelbuettel on Sep 02, 2005; 4:27pm
URL: http://quantlib.414.s1.nabble.com/Debian-package-issues-tp4019p4020.html

Matthew Nobes <drnobes <at> gmail.com> writes:
> I then cut and pasted americanoptions.cpp from the examples section of
> the quantlib website and tried to compile it, using the flags
> suggested by quantlib-config --libs --cflags
>
> gcc -L/usr/lib -lQuantLib-0.3.8 -I/usr/include amop.cpp
>
> I've tried this with gcc 3.3 and 3.4 neither work.  I get a long
> string of errors, which I've pasted in below.  Am I missing something?

The C++ compiler is g++, not gcc. Try
$ g++ -L/usr/lib -lQuantLib-0.3.8 -I/usr/include amop.cpp

You also need to make sure you match the compiler release with the one the
package was built with, i.e. if Ubuntu rebuilt with gcc/g++ 3.3, then there is
no point in trying 3.4.

Lastly, one of the nicer things in Debian (and hence Ubuntu) is the (if you
want, almost fully automatic) way of rebuilding packages locally. That way you
could fetch the current 0.3.10 packages from Debian's unstable (and maybe even
Ubuntu's breezy) and rebuild them on your Ubuntu hoary box.

Hth, Dirk