|
Boost : |
From: Steven Kirk (steven.kirk_at_[hidden])
Date: 2002-08-22 07:32:46
> > Hi, I am trying to compile the signal tests from the current CVS state
on
> > the Borland compiler but I am getting a "Unresolved external '_main'"
> error
> > at link time. As far as I can see this is because the signals test files
> are
> > using the BOOST_INCLUDE_MAIN macro to include the main function and this
> is
> > not (as yet) supported in the new test library. But looking at the
> > regression logs on sourceforge, this problem doesn't exist - what am I
> doing
> > wrong?
>
> Assuming that you're building from the IDE you will need to add some files
> from the boost test lib to get this to link:
>
> compile all the files that are *not* named *main.cpp in libs/test/src into
a
> static lib and add that to your project along with
> libs/test/src/test_main.cpp.
>
No, I'm not compiling from the IDE, I'm invoking bjam from the
boost/libs/signals/test directory:
bjam -sTOOLS=borland
I've since tried this with mingw and I get a similar error : it can't find
main. I don't understand how it can, since BOOST_INCLUDE_MAIN is not
supported in the new test library, and the jamfile doesn't specify that the
tests should be linked with the test library. Are the regression results on
sourceforge actually being updated for the signals library?
> Having just said that, it seems that someone has recently broken the
signals
> lib under Borland (it used to compile OK, but doesn't at present), anyone
> any ideas?
>
What errors are you getting? Is it to do with _main not being found?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk