Login  Register

Re: Compile a quantlib C++ program

Posted by Yang Ye on Dec 22, 2007; 3:42pm
URL: http://quantlib.414.s1.nabble.com/Compile-a-quantlib-C-program-tp11516p11518.html

it shall also include the paths for include files and library files.

g++ -o stuff stuff.cpp -I/path/to/includefiles -L/path/to/libfiles -lql

Regards,
Yang Ye

Nasky wrote:

> Hi all,
>
>  I'm a new user. I don't know how to compile a C++ program using QuantLib on
> Linux.
>
> My code is heavily simple.
>
> #include <ql/quantlib.hpp>
>
> int main() {
>    QuantLib::Real stuff ;
>    return 0;
> }
>
>
> And I compile with : g++ -o stuff stuff.cpp
> And I got lots of errors stating XXX cannot be found, not referenced, etc.
>
> What should I add to my compilation line ? Something like "-lql" doesn't
> work.
>
> Thanks
>  


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev