Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2005-01-24 12:47:59


Vladimir Prus <ghost_at_[hidden]> writes:

> On Friday 21 January 2005 19:47, David Abrahams wrote:
>
>> >> generators_test : File bin/gcc-3.2/debug/a.obj not added as
>> >> expected
>> >> -------- all changes caused by last build command ----------
>> >> Added files : [..........
>> >
>> > .......
>> >
>> >> 'bin/gcc-3.2/debug/a.o',
>> >
>> > Is this some cygwin system?
>>
>> No. At least, I'm launching the tests through an ordinary Windows NT
>> version of Python. I do have Cygwin installed, and many cygwin
>> components are in the path. My GCC is a cygwin GCC. If these tests
>> only work when "gcc" invokes a mingw GCC it will be very
>> inconvenient. It used to work just fine.
>
> This looks strange. The OBJ type is defined like this:
>
> type OBJ : obj : : NT CYGWIN ;
> type OBJ : o ;
>
> so on NT or CYGWIN, "obj" suffix should be used. What suffix is used when you
> build "examples/hello"?

bjam -d+2 --v2 gcc
MkDir1 bin\gcc

mkdir "bin\gcc"

MkDir1 bin\gcc\debug

mkdir "bin\gcc\debug"

gcc.compile.c++ bin\gcc\debug\hello.o

"c:/tools/MinGW-2.0/bin/gcc.exe" -Wall -ftemplate-depth-100 -O0 -fno-inline -g -c -o "bin\gcc\debug\hello.o" "hello.cpp"

gcc.link bin\gcc\debug\hello.exe

"c:/tools/MinGW-2.0/bin/gcc.exe" -o "bin\gcc\debug\hello.exe" "bin\gcc\debug\hello.o" -g

bin\gcc\debug\hello.o: In function `main':
c:/boost/tools/build/v2/example/hello/hello.cpp:14: undefined reference to `std::cout'
c:/boost/tools/build/v2/example/hello/hello.cpp:14: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
bin\gcc\debug\hello.o: In function `Z41__static_initialization_and_destruction_0ii':
c:/tools/MinGW-2.0/include/c++/3.2/iostream:62: undefined reference to `std::ios_base::Init::Init()'
c:/tools/MinGW-2.0/include/c++/3.2/iostream:62: undefined reference to `std::ios_base::Init::~Init()'
bin\gcc\debug\hello.o: In function `main':
c:/boost/tools/build/v2/example/hello/hello.cpp:13: undefined reference to `__gxx_personality_v0'
...failed updating 1 target...

Compilation exited abnormally with code 1 at Mon Jan 24 12:47:34

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
 

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