Boost logo

Boost-Build :

From: Van Nguyen (nguyenhaivan78_at_[hidden])
Date: 2005-01-10 00:13:03


Hi,

I've ran into a strange problem that I hope you'll
help me out.

I have a project called ut which basically creates a
library. The Jamfile is:

project ut ;
lib utLib : [ glob src/*.cpp ] ;

This ut project contains a source file called
unit_test.cpp which has a main function.

Then I have a target that uses this utLib. The
Jamfile is:
exe TD_test :
[ glob ../src/*.cpp ]
TD_test.cpp
/ut//utLib
# $(UT)/src/ComponentResult.cpp
# $(UT)/src/unit_test.cpp
;

bjam gcc gives me this error message:
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../libcygwin.a(libcmain.o)(.text+0x7d):
undefined refere
nce to `_WinMain_at_16'
collect2: ld returned 1 exit status

If I commented out "/ut//utLib" and uncommented out
the actual source files path, then it links fine.

I also tried this in Linux, but I did not encounter
this problem.

Do you know why this happens in cygwin? I'm using
BBv2 milestone 9, boost1.31.0.

Thanks a lot.

__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250

 


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