Boost logo

Boost-Build :

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


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 ]
# $(UT)/src/ComponentResult.cpp
# $(UT)/src/unit_test.cpp

bjam gcc gives me this error message:
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.


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at