Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-02-25 11:34:02


David Abrahams wrote:
> Vladimir Prus <ghost_at_[hidden]> writes:
> > David Abrahams wrote:
> >> OK, I made some progress with the limited "test_all.py msvc" (no
> >> version). Now it fails here. I'm a bit stumped now; not quite sure
> >> what this is supposed to be doing or why it's failing.
> >
> > a.obj : error LNK2001: unresolved external symbol "void __cdecl z2(void)"
> > (?z2@@YAXXZ)
> > a.obj : error LNK2001: unresolved external symbol "void __cdecl z1(void)"
> > (?z1@@YAXXZ)
> > a.obj : error LNK2001: unresolved external symbol "int __cdecl bar(void)"
> > (?bar@@YAHXZ)
> > bin\msvc\debug\a.exe : fatal error LNK1120: 3 unresolved externals
> > Microsoft (R) Incremental Linker Version 6.00.8447
> >
> > Considering the first two functions: They are declared in z.cpp depending
> > on value of the SELECT macros. The idea is that z.cpp should be compiled
> > two times: once with SELECT equal to 1 and then with SELECT equal to 2.
> > These compilations should define z1 and z2 respectively.
> >
> > The most likely problem is that obj_1 and obj_2 main targets are not
> > linked to a.exe.
>
> That's very true; that is what's (not) happening. But how do we get
> it to start happening?

Here's a part of builtin.respose-file:

if $(sources[2-])
{
response-file-2 $(target) : $(sources[2]) ;
}

I think you meant $(sources[2-]) in the second case too ;-)

- Volodya

 


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