question about include path

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

question about include path

Yilei Chen
HI, can anyone tell me the following problem.
 
i use VC++6.0 to include "ql/quantlib.hpp", but it reports it can't be found.
 
in windows, the path should be "\ql\quantlib.hpp"
 
can you tell me how can let VC++6.0 recognize path using "/".
 
thank you very much
 
                                              Yilei Chen
Reply | Threaded
Open this post in threaded view
|

Re: question about include path

eric ehlers
Hello

The exact directive should be
#include <ql/quantlib.hpp>
This is correct even under Windows where the path delimiter is \.

If VC6 can't find the header it might mean that you need to add the
parent directory to the list of directories searched by the
preprocessor.  One way to do this is under project settings (Alt-F7),
C/C++, Preprocessor, Additional include directories.  If you use
QuantLib regularly you could make the change project independent under
Tools, Options, Directories, Include files.

Regards,
Eric

On 10/7/05, Yilei Chen <[hidden email]> wrote:

> HI, can anyone tell me the following problem.
>
> i use VC++6.0 to include "ql/quantlib.hpp", but it reports it can't be
> found.
>
> in windows, the path should be "\ql\quantlib.hpp"
>
> can you tell me how can let VC++6.0 recognize path using "/".
>
> thank you very much
>
>                                               Yilei Chen