|
From: Pavel <arc...@gm...> - 2011-03-10 16:02:19
|
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 <lui...@gm...>wrote: > > 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. > > > |