Hello,
Today I have tried to download and build QuantLib + SWIG interface for usage with C#. I have failed. Here is what I have got. Build Env: MSVS 2010 Pro, Vista Pro, SWIG latest (2.0.2), Boost latest (1.44).
1. Picked source code from SVN with tag R010100f0 (QuantLib + SWIG 1.1)
======QuantLib============
2. Set up project paths for QuantLib project to:
3. Compiled target "Debug". Two missing files (fdmhestonlikesolverfactory.cpp, fdmhullwhitemesher.cpp) had to remove from the project.
4. Built one example project. Everything works OK.
======QuantLib-SWIG============
1. Set up QL_DIR as "C:\Code\Other\QuantLib\QuantLib\"
Compiled target "Debug". Received error (see file s1.txt). 2. Set up directoris for QuantLib-SWIG project
3. Compiled target "Debug". Received error (see file s2.txt). I cannot work around this error and I cannot find anything related to work.obj in the project.
4. Tried to repeat all those steps above downloading newer code from SVN directory "trunk/". The problem is exactly the same.
Please give me the idea, how this can be fixed.
Thank you,
Pavel.
------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hello Pavel, On Wed, 2011-03-09 at 18:46 +0000, Pavel wrote: > 1. Picked source code from SVN with tag R010100f0 (QuantLib + SWIG > 1.1) > > ======QuantLib============ > > 3. Compiled target "Debug". Two missing files > (fdmhestonlikesolverfactory.cpp, fdmhullwhitemesher.cpp) had to remove > from the project. This is strange. I've checked out the tag, and the files are there in ql/experimental/finitedifferences. Are you sure you didn't delete them accidentally? > ======QuantLib-SWIG============ > 1. Set up QL_DIR as "C:\Code\Other\QuantLib\QuantLib\" > Compiled target "Debug". Received error (see file s1.txt). 1>C:\code\other\quantlib\quantlib\ql\qldefines.hpp(29): fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory means that the compiler didn't find boost. Did you set the include path correctly for this project, too? > 2. Set up directoris for QuantLib-SWIG project > > > INCLUDE: > C:\Program Files\boost\boost_1_44\; > C:\Code\Other\QuantLib\QuantLib\; ................ Ok, so you don't have the first error anymore, right? > 3. Compiled target "Debug". Received error (see file s2.txt). I > cannot work around this error and I cannot find anything related to > work.obj in the project. Maybe some path gone wrong? What is LIB for your project? Do you have any directory there that contains Work and that your compiler might misinterpret as an input file? Luigi -- Zawinski's Law: Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Dear Luigi,
Thank you for your reply. Apparently I have found the reason of this problem. It took me quite some time, so I would like to share this info.
Actually you were asking right questions. MS Compiler indeed misinterpreted the input file. The problem with non-existent "Work.obj" file in compiler was due to the problem with windows env. variables. I set up the name of the directory (QL_DIR) with quotation marks, because I had long directory names (including this magic "work" word). When I removed quotation marks, everything started compiling normally. So this my random action led to another random compiler error. I think it is good idea to insert this warning information into installation instruction to the library.
Another problem, that I have faced later was .NET 4. Examples didn't work well under debugger causing a crash like "stack out of synch error". At the same time running EXE files of the examples worked perfectly. I have solved this problem by switching to NET 3.5, which is my main platform anyway. I hope this information is valuable.
Best regards, Pavel. On Thu, Mar 10, 2011 at 3:09 PM, Luigi Ballabio <[hidden email]> wrote:
------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |