I'm stucked in building a simplest cpp file with jam.

Here is my cpp file:
#include <iostream>

using namespace std;

int main(int argc,char* argv[])
   return 0;   

Here is my Jamfile:
Main test : test.cpp ;

I tried 'jam -n' and I got the msg:
Compiler is Microsoft Visual C++ 
...found 11 target(s)...
...updating 2 target(s)...
C++ test.obj 

cl /nologo  /c /Fotest.obj   /O2    /ID:\Program\include /IFiles\Microsoft\include /IVisual\include /IStudio\include /I9.0\VC\include  /Tptest.cpp 

Link test.exe 

cl /nologo    /Fetest.exe   test.obj   D:\Program\lib\advapi32.lib Files\Microsoft\lib\advapi32.lib
 Visual\lib\advapi32.lib Studio\lib\advapi32.lib 9.0\VC\lib\advapi32.lib 
D:\Program\lib\libc.lib Files\Microsoft\lib\libc.lib Visual\lib\libc.lib Studio\lib\libc.lib 9.0\VC\lib\libc.lib 
D:\Program\lib\oldnames.lib Files\Microsoft\lib\oldnames.lib Visual\lib\oldnames.lib Studio\lib\oldnames.lib 9.0\VC\lib\oldnames.lib
 D:\Program\lib\kernel32.lib Files\Microsoft\lib\kernel32.lib Visual\lib\kernel32.lib Studio\lib\kernel32.lib 9.0\VC\lib\kernel32.lib 

...updated 2 target(s)...

The compile and link commands were totally wrong. My VC9.0 is installed 'D:\Program Files\Microsoft Visual Studio 9.0', is the BLANKSPACE in the INSTALL PATH cause the problem? If so, how can I solve this problem?

Here is my batch file to set the environment.
@echo off
title JAM Build Tool

rem set MSVCNT="D:\Program Files\Microsoft Visual Studio 9.0\VC"
set MSVCNT=D:\Program Files\Microsoft Visual Studio 9.0\VC
set MSCVER=1500

call "%VS90COMNTOOLS%vsvars32.bat"

@echo on

Thank you in advance!

Best Regards


-- YanWei - 15 Nov 2009


ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Hi there!

I build a jam2.5 with vc9 from the source code, and now it works well! Several hours will be taken to understand howto of jam tool and the jam structure of gpstk.


Wei Yan

-- YanWei - 26 Feb 2010 No such template def TMPL:DEF{PROMPT:supportquery}

Topic revision: r4 - 26 Feb 2010, YanWei

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback