|
From: Yang Ye <lea...@ya...> - 2007-12-22 15:43:04
|
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
>
|