[boost-users] Library names with mingw-g++ onm windows
How does one invoke bjam on the version of boost in SVN-Trunk so that mingw-g++ libraries use '.a' as a suffix instead of '.lib' ? When I use the mingw g++ compiler on Windows I expect it to produce libraries ending with '.a' since that is what the compiler typically looks for when linking with something like: -lboost_filesystem-mt-d Granted I could just put the whole library name -llibboost_filesystem_mt-d.lib but is there a way to make bjam produce .a as a suffix instead? Shouldn't this be the default behavior if I am using a gcc based toolset? -- John
John Femiani wrote:
How does one invoke bjam on the version of boost in SVN-Trunk so that mingw-g++ libraries use '.a' as a suffix instead of '.lib' ?
When I use the mingw g++ compiler on Windows I expect it to produce libraries ending with '.a' since that is what the compiler typically looks for when linking with something like:
-lboost_filesystem-mt-d
Granted I could just put the whole library name
-llibboost_filesystem_mt-d.lib
but is there a way to make bjam produce .a as a suffix instead? Shouldn't this be the default behavior if I am using a gcc based toolset?
This was extensively discussed. The .lib suffix makes it possible to take library produced by mingw, and link it into msvc projects. Further, it was found that .lib suffix works just fine. Your email does not report any practical problems you run into -- what are they? - Volodya
participants (2)
-
John Femiani
-
Vladimir Prus