|
Boost Testing : |
From: Beman Dawes (bdawes_at_[hidden])
Date: 2005-12-07 13:34:53
"Martin Slater" <mslater_at_[hidden]> wrote in message
news:438D9BEC.4040105_at_hellinc.net...
> Eric Niebler wrote:
>> For the [mslater] mingw tests, xpressive is failing due to what looks to
>> be a configuration problem. See http://tinyurl.com/87dg9:
>>
>> c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libmingw32.a(main.o)(.text+0x97):main.c:
>> undefined reference to `WinMain_at_16'
>>
>> FWIW, xpressive's tests pass for the Bronek mingw toolset.
>
>
> Anyone got any ideas what could cause this?
The g++ command line is missing -L"c:/cygwin/lib/mingw", or whatever your
appropriate path is.
The obvious workaround is to add an environmental variable:
set MINGW_STDLIB_DIRECTORY=c:\cygwin\lib\mingw
That almost works, but also adds a spurious -L"" to the g++ command line. If
you remove the -L"" by hand, the g++ command then works OK.
We need help from a Boost.Build expert:
* Why does MINGW_STDLIB_DIRECTORY have to be set by hand? Is the problem
that cygwin installs the mingw libraries in lib\mingw rather than lib? Do we
need a separate cygwin-mingw toolset?
* Where is the spurious -L"" coming from and how do we get rid of it?
Rene?
--Beman