Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/can-t-compile-in-LINUX-tp13783p13789.html
You probably need to set the proper include path. If you did a
default installation of QuantLib, ql/quantlib.hpp should be in
/usr/local/include/q/quantlib.hpp. If so, when you compile you'll
have to add /usr/local/include as additional include path (if you're
using gcc, add -I /usr/local/include to the command line). If you
installed somewhere else, add the corresponding path.
Most likely, you'll also have to tell the compiler to link QuantLib
with your program and add the library path. With gcc, the options to
add to the command line are -lQuantLib and -L /usr/local/lib (or
wherever libQuantLib.so was installed).
Luigi
On Tue, Dec 4, 2012 at 6:41 PM, Pavan Shah <
[hidden email]> wrote:
> Hello,
> I am trying to compile in Linux and I get an error that states
>
> "
> /usr/local/google/home/pavanshah/Downloads/QuantLib-1.2.1/ql/quantlib.hpp:4:28:
> fatal error: ql/qldefines.hpp: No such file or directory
> compilation terminated.
>
>
> "
>
> In my .cpp file, I have an include directive that states
>
> #include <ql/quantlib.hpp> .
>
> Why is it still complaining?
> Is there a way for me to make available all QuantLib headers and libraries
> to all C++ projects? I did that with boost and that works fine.
>
> thanks
> Pavan
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
>
http://p.sf.net/sfu/logmein_12329d2d> _______________________________________________
> QuantLib-users mailing list
>
[hidden email]
>
https://lists.sourceforge.net/lists/listinfo/quantlib-users>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users