On Tue, 09 Dec 2003 18:59:40 -0500, Beman Dawes wrote:
Here is a gcc command that works for me (after the libraries have been built):
Thanks for the help. The following works for me:
set BOOST_FILESYSTEM_LIB=D:\C++\Boost\Current\libs\filesystem\build\bin\libboost_filesystem.lib
\gcc\debug\runtime-link-dynamic\libboost_filesystem.lib
g++ -Id:\C++\Boost\Current -o simple_ls.exe simple_ls.cpp %BOOST_FILESYSTEM_LIB%
Unfortunately, I haven't been able to find a way to make it work for VC7.1.
This is my most recent effort:
set BOOST_FILESYSTEM_LIB=D:\C++\Boost\Current\libs\filesystem\build\bin\libboost_filesystem.lib
\vc7\debug\runtime-link-dynamic\libboost_filesystem.lib
cl /TP /W4 /WL /GX /GR -ID:\C++\Boost\Current simple_ls.cpp /link /defaultlib:%
BOOST_FILESYSTEM_LIB%
This elicits multiply-defined symbols errors:
simple_ls.cpp
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
/out:simple_ls.exe
/defaultlib:D:\C++\Boost\Current\libs\filesystem\build\bin\libboost_filesystem.lib\vc7\debug
\runtime-link-dynamic\libboost_filesystem.lib
simple_ls.obj
msvcprtd.lib(MSVCP71D.dll) : error LNK2005: "public: char const & __thiscall std::basic_string