Boost logo

Boost-Build :

Subject: [Boost-build] Library generation GCC on Windows vs Linux
From: Christian Auby (christian_at_[hidden])
Date: 2009-11-20 07:37:47

First I compile a simple lib, like this:

lib hello : hello.cpp ;

This creates "libhello.lib" on Mingw and "libhello.a" on Linux. However,
if I compile an exe-file that requires the resulting lib (not depending
on the actual target, I can't do this because the lib is compiled
somewhere else):

lib hello ;

exe app : hello ;

This works on Linux since -lhello automatically looks for "libhello.a".
However, on Windows this looks for "hello.lib" which doesn't exist.
Seems to me the library generation on MinGW shouldn't add "lib" in front
of the resulting library name, or have I missed something?


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