(no subject)

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

(no subject)

Vikram Agrawal

HI All,

 

I am using MS Visual C++ 7.0

 

If I have #include <ql/quantlib.hpp>  in my code, I get the following error:

Cannot Open include file ql/quantlib.hpp : No such file or directory

 

But if I have #includeql/quantlib.hpp” , it works but then I get other errors because, within quantlib.hpp ‘<’ has been used for the #include directives.

 

Can somebody please shed some light on this ?

 

Thanks

-Vikram

 

Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

Sanjay Narayanan
Vikram,
The #include "ql/quantlib.hpp" form searches for the files in the directory of
the file that contains the #include statement, and then in the path specified
by the /I compiler option, and then in the INCLUDE environment variable. The
<ql/quantlib.hpp> form skips the current directory but everything else is the
same. Since you have other include files in the <> form, your best option
might be to add the directory of the quantlib.hpp file (and any other
necessary directories) to the path specified in Project/Settings in MSVC++.
Sanjay


"Vikram Agrawal" <[hidden email]> wrote:

> HI All,
>  
> I am using MS Visual C++ 7.0
>  
> If I have #include <ql/quantlib.hpp>  in my code, I get the following
> error:
> Cannot Open include file ql/quantlib.hpp : No such file or directory
>  
> But if I have #include "ql/quantlib.hpp" , it works but then I get other
> errors because, within quantlib.hpp '<' has been used for the #include
> directives.
>  
> Can somebody please shed some light on this ?
>  
> Thanks
> -Vikram