fatal error C1083: Cannot open include file: 'ql/qldefines.hpp':

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

fatal error C1083: Cannot open include file: 'ql/qldefines.hpp':

Lars Christensen-2
I am using MS Visual c++ . Net, and I have succesfully setup quantlib. I hav run the american option example and it works fine. However, when I try to create my own program I get the error
 
fatal error C1083: Cannot open include file: 'ql/qldefines.hpp': No such file or directory
 
I have installed quantlib under c:\programmer\Quantlib and I have added the path in my environment variables as well as in visual c++. Net under Tools - Options - Projects - VC++ directories.
 
Can any one help. (I must say, that I am a c++ beginner, so the chances are, that it is something trivial)
Reply | Threaded
Open this post in threaded view
|

Re: fatal error C1083: Cannot open include file: 'ql/qldefines.hpp':

Krishna Kumar-2
Lars Christensen wrote:

> I am using MS Visual c++ . Net, and I have succesfully setup quantlib.
> I hav run the american option example and it works fine. However, when
> I try to create my own program I get the error
>  
> fatal error C1083: Cannot open include file: 'ql/qldefines.hpp': No
> such file or directory
>  
> I have installed quantlib under c:\programmer\Quantlib and I have
> added the path in my environment variables as well as in visual c++.
> Net under Tools - Options - Projects - VC++ directories.
>  
> Can any one help. (I must say, that I am a c++ beginner, so the
> chances are, that it is something trivial)

Have you looked at,  How to set an include path in vc++ ?
And also here http://www.quantlib.org/html/usage.html






Reply | Threaded
Open this post in threaded view
|

Re: fatal error C1083: Cannot open include file: 'ql/qldefines.hpp':

Lars Christensen-2
> Have you looked at,  How to set an include path in vc++ ?
> And also here http://www.quantlib.org/html/usage.html

Thank you, Krishna, for your reply.
I have tried to follow the two suggestions under
http://www.quantlib.org/html/usage.html. But I am using Visual C++ . Net
6.0, and there is nowhere to check the "Use RTTI" option as described for
visual c++.

The examples are running without problems. Here the #include
<ql/quantlib.hpp> is working without any trouble. I have tried to place my
own example in the same library as the examples just to be sure that the
path would be ok, but I cannot make it work.
Any suggestions?



Reply | Threaded
Open this post in threaded view
|

Re: Re: fatal error C1083: Cannot open include file: 'ql/qldefines.hpp':

Krishna Kumar-2

>>The examples are running without problems. Here the #include
>>is working without any trouble. I have tried to place my
>>own example in the same library as the examples just to be sure that the
>>path would be ok, but I cannot make it work.

You need to set your include path  there are atleast two ways of doing this

a) Tools->options->directories->Show directories for (includepath)

b) Project->settings->c/c++->(category)preprocessor->additional include directories.

You should point to the top-level of the hierarchy c:/quantlib/

>>Any suggestions?

Yes, two

http://tinyurl.com/3l66s

&  http://tinyurl.com/5s4de

Best,

Krishna Kumar

------------------- Email sent using AnyEmail (http://netbula.com/anyemail/)
Reply | Threaded
Open this post in threaded view
|

Re: fatal error C1083: Cannot open include file: 'ql/qldefines.hpp':

Ferdinando M. Ametrano-3
In reply to this post by Lars Christensen-2
Hi Lars

>But I am using Visual C++ . Net
>6.0, and there is nowhere to check the "Use RTTI" option as described for
>visual c++.


hidden somewhere in .NET there should be a similar option, unfortunately I
cannot check it in the next 2-3 weeks. Anyway try 0.3.7 which has been just
released.

ciao -- Nando