Installation Question (Cannot open include files)

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

Installation Question (Cannot open include files)

Sergei Kucherenko
Hello,

A similar question has been asked before ( f.e.
"What's the correct way to make QuantLib work with
Boost?") and the asnwer was given but there is
something new in this problem with include files from
"boost":  

I am using Visual C++ to build QuantLib 0.3.7. After
receiving the error message that it could not find
'boost\version.hpp', I added the path
'C:\Boost\include\boost-1_31' to inculde  directories
- under project properties / C/C++ / preprocessor.

It did work first time: I managed to compile and run
quantlib projects. Somehow an updated VC++ project
wasn't saved, so next time I've got the same error
message and I did the same ( or very similar, I don't
remember exactly  ), that is I added the path
'C:\Boost\include\boost-1_31 ... ), it
didn't this time work ( errors
c:\program files\quantlib\ql\qldefines.hpp(26) : fatal
error C1083: Cannot open include file:
'boost/version.hpp': No such file or directory
daycounters.cpp  etc ). I reinstalled QuantLib from
scratch without any success. Any ideas what may cause
this problem and how to fix it ?

Best regards,
Sergei


       
       
               
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com


Reply | Threaded
Open this post in threaded view
|

Re: Installation Question (Cannot open include files)

Luigi Ballabio-2
On 2004.10.21 08:48, Sergei Kucherenko wrote:
>
> I am using Visual C++ to build QuantLib 0.3.7. After
> receiving the error message that it could not find
> 'boost\version.hpp', I added the path
> 'C:\Boost\include\boost-1_31' to inculde  directories
> - under project properties / C/C++ / preprocessor.

Sergei,
        as you might want to use Boost for other projects, you might be  
better off adding it to the VC++ general include path itself rather than to  
the QuantLib project. You can do it from the main menu,
Tools/Options.../Directories

Hope this helps,
                Luigi