Boost logo

Boost-Build :

From: Van Nguyen (nguyenhaivan78_at_[hidden])
Date: 2004-11-10 17:00:10


I'm trying to include a new toolset called ccsimpc for bjam. The link
procedure requires a few steps. In my ccsimpc.jam file, I have:

[...]
actions link bind LIBRARIES
{
"$(CONFIG_COMMAND)" -r -nostdlib "$(>)" -o partialImage.o
rm -f ctdt.c 2> /dev/null
nmsimpc -g partialImage.o | wtxtcl
C:/Tornado2.2/host/src/hutils/munch.tcl -c simpc > ctdt.c
"$(CONFIG_COMMAND)" -c -fdollars-in-identifiers -g -mpentium -ansi
-fno-builtin -fno-defer-pop ctdt.c -o ctdt.o
"$(CONFIG_COMMAND)" -r -nostdlib -Wl,--force-stabs-reloc
partialImage.o ctdt.o -o "$(<)"
}
[...]

So clearly, there are 5 consecutive steps to get the executable file.
When building my HelloWorld project, I have:

c:\Temp\hello>bjam ccsimpc
...found 9 targets...
...updating 1 target...
ccsimpc.link bin\ccsimpc\debug\test.out
ccsimpc: cannot specify -o with -c or -S and multiple compilations
"ccsimpc" -r -nostdlib "bin\ccsimpc\debug\hello.o" -o partialImage.o
rm -f ctdt.c 2> /dev/null
nmsimpc -g partialImage.o | wtxtcl
C:/Tornado2.2/host/src/hutils/munch.tcl -c simpc > ctdt.c
"ccsimpc" -c -fdollars-in-identifiers -g -mpentium -ansi
-fno-builtin -fno-defer-pop ctdt.c -o c
tdt.o
"ccsimpc" -r -nostdlib -Wl,--force-stabs-reloc partialImage.o
ctdt.o -o "bin\ccsimpc\debug\test.
out"
...failed ccsimpc.link bin\ccsimpc\debug\test.out...
...failed updating 1 target...

I couldn't find the right syntax for executing multiple commands.
Also, the weird thing is even if I commented out other commands, I
still got the same error. It only worked if I keep 1 line and delete
the rest of the commands.

Another question, how do I get the path to my bin/ccsimpc/debug
directory from here? I can't use $(<) as it's bin/ccsimpc/debug/test.out.

Thanks a lot. Your help's been VERY helpful to me so far.

 


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