Posted by
Theologis Chapsalis-2 on
Mar 12, 2011; 12:20am
URL: http://quantlib.414.s1.nabble.com/Fwd-Re-Errors-building-QuantLib-SWIG-1-1-with-msvc10-tp6883.html
Helllo guys
So far I am using QuantLib in C++ and everything works fine. On the
other side with SWIG, I face some problems.
When I try to build the "NQuantLibc", it fails with the error:
Error 1 error LNK1104: cannot open file
'QuantLib-vc90-mt-gd-0_9_9.lib' G:\The
QuantLib\QuantLib-SWIG-1.0\CSharp\cpp\LINK NQuantLibc
The Quantlib 0.9.9 file that I am using is called "QuantLib-vc90-mt-
sgd-0_9_9.lib".
How can I make the project look for the correct .lib file (
sgd
instead of gd)?
P.S: I went
here
to download QuantLib-SWIG-1.1, but the GNU tarball that I downloaded
did not have the "*.cs" files required for the project. I would like
to use ZeroCouponInflationSwaps, which are only included in the
newest version
Any help would be highly useful
On 10/03/2011 16:01, Pavel wrote:
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:
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
------------------------------------------------------------------------------
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