Boost logo

Boost-Build :

Subject: Re: [Boost-build] building the final library name...
From: Thomas Lehmann (t.lehmann_at_[hidden])
Date: 2010-01-19 06:53:59


Hi!

Am 19.01.2010 10:07, schrieb Juergen Hunold:
> Hi !
>
> On Tuesday 19 January 2010, you wrote:
>
>> Of course. Here's the hello world example: (attachment)
>> One Jamroot and a helloWorld.cxx file.
>> I'm getting a helloWorld.exe only.
>>
> Please try the attached one.
> I think the main culprit was that "<tag>" must be specified at project
> level. And if you use "<toolset>" you can get rid of the multiple exe
> declaration unless you have different sources for the platforms.
>
Does still not produce other than helloWorld.exe!
Yes, the env. HOSTNAME has to be set from outside. I would like
to set this by Jam but I don't know whether Jam has this information.

Here's the output with -d+2:

[19.01.2010 12:52:14,84] E:\Prototyping\HelloWorld>bjam -a -d+2

file
bin\ws6-107-fra\helloWorld\msvc\debug\threading-multi\helloWorld.obj.rsp
"helloWorld.cxx"
  -Fo"bin\ws6-107-fra\helloWorld\msvc\debug\threading-multi\helloWorld.obj"
    -TP
  /Z7
  /Od
  /Ob0
  /W3
  /GR
  /MDd
  /Zc:forScope
  /Zc:wchar_t
  /wd4675
  /EHs
  -c

-D_PROTOTYPING

"-I."

compile-c-c++
bin\ws6-107-fra\helloWorld\msvc\debug\threading-multi\helloWorld.obj

     call "e:\Program Files\Microsoft Visual Studio
9.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo
@"bin\ws6-107-fra\helloWorld\msvc\debug\threading-multi\helloWorld.obj.rsp"

helloWorld.cxx

file
bin\ws6-107-fra\helloWorld\msvc\debug\threading-multi\helloWorld.exe.rsp

"bin\ws6-107-fra\helloWorld\msvc\debug\threading-multi\helloWorld.obj"

msvc.link
bin\ws6-107-fra\helloWorld\msvc\debug\threading-multi\helloWorld.exe

         call "e:\Program Files\Microsoft Visual Studio
9.0\VC\vcvarsall.bat" x86 >nul
link /NOLOGO /INCREMENTAL:NO /DEBUG /subsystem:console
/out:"bin\ws6-107-fra\helloWorld\msvc\debug\threading-multi\helloWorld.exe"
@"bin\ws6-107-fra\helloWorld\msvc\debug\threading-multi\helloWorld.exe.rsp"
         if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
         if exist
"bin\ws6-107-fra\helloWorld\msvc\debug\threading-multi\helloWorld.exe.manifest"
(
             mt -nologo -manifest
"bin\ws6-107-fra\helloWorld\msvc\debug\threading-multi\helloWorld.exe.manifest"
"-outputresource:bin\ws6-107-fra\helloWorld\msvc\debug\threading-multi\helloWorld.exe;1"
         )

common.copy ..\Binaries\ws6-107-fra\helloWorld.exe

     copy
"bin\ws6-107-fra\helloWorld\msvc\debug\threading-multi\helloWorld.exe"
"..\Binaries\ws6-107-fra\helloWorld.exe"

         1 file(s) copied.

> I've tried to use "os.environ" instead of "modules.peek" for HOSTNAME,
> but got no value (for both).
>
> I hope that this get you started.
>
> Yours,
>
> Jürgen
>


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