Boost logo

Boost-Build :

From: Zbynek Winkler (zwin_at_[hidden])
Date: 2004-02-26 10:17:14


Vladimir Prus wrote:
> Hi Zbynek,
>
>
>>I am using the following definition with mingw:
>>
>>lib cppunit : : <name>libcppunit <search>c:/msys/1.0/local/lib/ ;
>>
>>However the command line generated contains
>>
>>-L"c:\msys\1.0\local\lib"
>>
>>and mingw does not find the library. It needs the slash at the end.
>>
>>d:\>g++ -L"c:\msys\1.0\usr\local\lib" -llibcppunit
>>c:\mingw\bin\..\lib\gcc-lib\mingw32\3.2.3\..\..\..\..\mingw32\bin\ld.exe:
>>cannot find -llibcppunit
>>
>>d:\>g++ -L"c:\msys\1.0\usr\local\lib\" -llibcppunit
>>g++: no input files
>>
>>What can we do about it?
>
>
> I would say this is a problem with mingw. Maybe, the best approach would be to
> ask them about this behaviour. If they disagree it's a bug and refuse to
> change the behaviour, we'll have to workaround. Otherise, we can either do
> nothing or put a workaround now, and remove it later.

It indeed is a problem with mingw/msys. It is related to the fact that there
is no directory /usr. It is just a magic mapping to root that sometimes gets
created and sometimes does not. The workaround is to not to use it :).
Changing the above to -L"c:\msys\1.0\local\lib" works.

Zbynek

-- 
http://zw.matfyz.cz/ http://robotika.cz/
Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic
 

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