Posted by
Fabrice_CBA on
URL: http://quantlib.414.s1.nabble.com/how-does-one-use-QuantLib-in-a-new-Visual-Studio-project-basic-question-tp6037p6038.html
Hi Nick,
What you should do to make it work is:
- Open the Quantlib solution
- Right-click - Add a new Win 32
console project
- Right click on the newly created project -
Project dependancies - Check Quantlib.
- Right-Click - Properties - C/C++ - Additional
Include directories - add ...\Quantlib-0.9.0
- Right-Click - Properties - Linker -
Additional Library directories - add
...\Quantlib-0.9.0\lib
- Include necessary headers and write a test
main.
Some of this steps may be unecessary or
redundant though.
Furthermore, you might want to create your project in a
different solution, in that case you do the same thing you did when linking
boost to Quantlib, the 3rd step is then useless.
Attached you will find a very small example to call the
Sobol number generator.
Note that when I did that myself, there was a point I
couldn't make it compile without including auto_link.hpp. It now works fine
wihtout it, but I don't know exactly why adding it at some point solved a
problem. If somebody can enlighten me...
Bonne chance,
Fabrice
Hi,
I've successfully compiled QuantLib-0.9.0 and Boost using Visual Studio
2008, and can run the examples. I want to create my own VS 2008 Win32
console project that combines my finite difference C++ code with
QuantLib's. I tried to copy and paste my code into EquityOption but that
didn't work. Is there any documentation that specifies a step-by-step how
to use QL in a new VS project?
Thanks,
Nick
************** IMPORTANT MESSAGE *****************************
This e-mail message is intended only for the addressee(s) and contains information which may be
confidential.
If you are not the intended recipient please advise the sender by return email, do not use or
disclose the contents, and delete the message and any attachments from your system. Unless
specifically indicated, this email does not constitute formal advice or commitment by the sender
or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries.
We can be contacted through our web site: commbank.com.au.
If you no longer wish to receive commercial electronic messages from us, please reply to this
e-mail by typing Unsubscribe in the subject line.
**************************************************************
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
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