In my project I have a file, config.h, that should be generated from config.h.php. My jamfile looks like this:

 

 

make config.h : config.h.php : @run-php ;

exe myEXE : config.h a.cpp … ;

 

 

I ran bjam with VC 2005, and bjam put the generated config.h at

 

Bin/gui/msvc-8.0/debug/link-static/runtime-link-static/thread-multi

 

All object files are under

 

Bin/gui/msvc-8.0/debug/link-static/runtime-link-static/thread-multi/user-interface-gui

 

In the .rsp file generated, the header include path has

 

"-I..\bin\gui\msvc-8.0\debug\link-static\runtime-link-static\threading-multi\user-interface-gui"

 

But it does not contain the path to its parent directory. The compiler complained that it could not locate config.h.

 

How can I solve the problem?