Compile a quantlib C++ program
Posted by Nasky on Dec 22, 2007; 1:17pm
URL: http://quantlib.414.s1.nabble.com/Compile-a-quantlib-C-program-tp11516.html
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