need help on compiling quantlib

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

need help on compiling quantlib

Leung Louis
Reply | Threaded
Open this post in threaded view
|

Re: need help on compiling quantlib

LouisLeung
Leung Louis <nameless_leung <at> hotmail.com> writes:

>
> An HTML attachment was scrubbed...
> URL:
> http://sourceforge.net/mailarchive/forum.php?forum=quantlib-
users/attachments/20070116/a1c608a3/attachment.html
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>

Sorry I used the hotmail to send the previous mail and I didnt realized the
richtext mode.
I post again here

Hi,

I am new to Quantlib and I am trying to compile the quantlib with Borland
C++ 5.5.1 on windows XP environment

I installed the Boost and try to test my boost
http://beans.seartipy.com/2006/03/16/how-to-test-c-boost-installation/

----- first.cpp ------------------------------------------------------
#include<iostream>
#include<boost/any.hpp>
int main()
{
    boost::any a(5);
    a = 7.67;
    std::cout<<boost::any_cast<double>(a)<<std::endl;
}

----- second.cpp -----------------------------------------------------
#include<iostream>
#include<boost/filesystem/operations.hpp>
namespace bfs=boost::filesystem;
int main()
{
    bfs::path p("second.cpp");
    if(bfs::exists(p))
    std::cout<<p.leaf()<<std::endl;
}
----------------------------------------------------------------------

I build them and run them with no problem, so I assume that I have
successfully installed the boost and bjam.
Then I try to build the Quantlib with borland C++

make -D__MT__ -D_RTLDLL -D_DEBUG all

and it came up with this error

-----------------------------------------------------------------------------
        bcc32 -vi- -I".." -I"..\functions" -w-8070 -w-8066 -w-8008 -v -D_DEBUG -
D_RTLDLL -tWM -L"..\lib"   -e".\bin\QuantLib-test-suite-bcb-mt-d-0_3_14.exe"   a
ll-tests-bcb-mt-d-0_3_8.lib libboost_unit_test_framework-bcb-mt-d-1_33_1.lib
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Error detected (LME351)
Warning: Cannot reserve virtual memory at addr 4A0E0000 for -917504 bytes (errco
de 87)

** error 1 ** deleting .\bin\QuantLib-test-suite-bcb-mt-d-0_3_14.exe

** error 1 ** deleting tests

C:\c++\downloads\QuantLib-0.3.14>
-----------------------------------------------------------------------------

I have already spent days on google the answer, Any help on this?
Thank you very much!

Yozz