|
Apologies, I noticed some redundant steps in (6) below of my previous e-mail, which I have now deleted. Hopefully this did not cause any confusion.
Regards,
Paul
I got QuantLib to work using Dev-C++ 4.9.9.2 as follows:
(1) Install Dev-Cpp-4.9.9.2 into a folder of the same name.
(2) Copy the Boost library folder "\boost" into the same folder.
(3) Copy the QuantLib library folder "\ql" into the same folder.
This gives the following directory structure:
DRIVE FOLDER SUBFOLDER
X: \Dev-Cpp-4.9.9.2 \bin
\boost (from Boost version 1.32.0)
\build
\Help
\Icons
\include
\Lang
\lib
\libexec
\mingw32
\Packages
\ql (from QuantLib version 0.3.9)
\Templates
(4) Set Dev-C++ 4.9.9.2 "Tools -> Compiler Options" to have the following:
Directories: Binaries: X:\Dev-Cpp-4.9.9.2\bin
Libraries: X:\Dev-Cpp-4.9.9.2
C Includes: X:\Dev-Cpp-4.9.9.2
C++ Includes: X:\Dev-Cpp-4.9.9.2
(5) Now open the project file "QuantLib.dev", found in the top directory where the QuantLib files were extracted. Then "Execute -> Compile". This will create a file "\lib\lib\libQuantLib-mgw-0_3_9.a" in the QuantLib extract directory. Save a copy of this file in folder "X:\Dec-Cpp-4.9.9.2\lib".
All done. To compile any Quantlib project just set the following Project Options:
(6) Within any "*.dev" file, set the "Project -> Project Options" to:
Parameters:
Compiler: -D__GNUWIN32__ -W -fexceptions -finline-functions -DNDEBUG -DWIN32 -D_CONSOLE -D_MBCS -DNOMINMAX
C++ compiler: -D__GNUWIN32__ -W -fexceptions -finline-functions -DNDEBUG -DWIN32 -D_CONSOLE -D_MBCS -DNOMINMAX
Linker: -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lQuantLib-mgw-0_3_9
Directories:
Library Directories: None
Include Directories: None
Resource Directories: None
This worked for me.
Regards,
Paul
|