Re: Error Compiling EquityOption.cpp
Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Error-Compiling-EquityOption-cpp-tp5998p6000.html
On Apr 8, 2008, at 12:06 AM, Ruth Oh wrote:
> I installed boost and Quantlib on a Unix vmware as the root user. Now,
> I'm trying to compile EquityOption.cpp using this command line:
>
> g++ -o EquityOption EquityOption.cpp -g
>
> -o is for the executable EquityOption and -g is for using it with the
> debugger gdb. What I then get is a long list of errors [...]
Hi Ruth,
that should be:
g++ -o EquityOption EquityOption.cpp -g -lQuantLib
i.e., you have to tell the compiler to link QuantLib with the
executable.
Luigi
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users