Boost logo

Boost-Build :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2005-01-20 05:52:47


When working on windows, I again hit a problem with spaces in my include
path. So I wonder if I'm using the right syntax.

First I write in my user-config.jam following alias that points to the
include directory (of MPICH version 2 in this case)

<quote>
lib libmpi : : <file>C:\\"Program Files"\\MPICH2\\lib\\libmpich2.a : :
<include>C:/"Program Files"/MPICH2/include ;
</quote>

Next I have a simple file
<tt.cpp>
#include <mpi.h>
int main() { return 0 ;}
</tt.cpp>

and corresponding Jamfile
<Jamfile>
exe tt : tt.cpp /user-config//libmpi ;
</Jamfile>

and bjam-ing it gives me following error (remark that it mentions the
path 'Files\MPICH2\include' so apparantly the space in the include path
breaks the include path in two):

...found 14 targets...
...updating 6 targets...
msvc.compile.c++ bin\msvc\debug\tt.obj bin\msvc\debug\tt_cpp.rsp
tt.cpp
tt.cpp(1) : fatal error C1083: Cannot open include file: 'mpi.h': No
such file or directory
include
c1xx : fatal error C1083: Cannot open source file:
'Files\MPICH2\include': No such file or directory
Generating Code...

call "C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\vcvars32.bat" > nul
cl /Zm800 -nologo -TP /Z7 /Od /Ob0 /EHsc /GR /MDd
@"bin\msvc\debug\tt_cpp.rsp" -c -Fo"bin\msvc\debug\tt.obj"

...failed msvc.compile.c++ bin\msvc\debug\tt.obj
bin\msvc\debug\tt_cpp.rsp...
...removing bin\msvc\debug\tt_cpp.rsp
...skipped <pbin\msvc\debug-rsp>tt.rsp for lack of
<pbin\msvc\debug>tt.obj...
...skipped <pbin\msvc\debug>tt.exe for lack of <pbin\msvc\debug>tt.obj...
...skipped <pbin\msvc\debug>tt.rsp for lack of <pbin\msvc\debug>tt.obj...
...failed updating 2 targets...
...skipped 3 targets...
...updated 1 target...

Thanks in advance!

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk