Building boost::filesystem without bjam

I just upgraded to boost 1.31. I use filesystem with MSVC 6.0, but I don't use the jamfiles to create my .dsp and .dsw files. I just created simple projects myself. It worked previously, but now when I try to include the filesystem.dll file, I get the error LINK : fatal error LNK1104: cannot open file "libboost_filesystem-vc6-mt-gd-1_31.lib" Do you have any suggestions?

Joe Gottman wrote:
I just upgraded to boost 1.31. I use filesystem with MSVC 6.0, but I don't use the jamfiles to create my .dsp and .dsw files. I just created simple projects myself. It worked previously, but now when I try to include the filesystem.dll file, I get the error
LINK : fatal error LNK1104: cannot open file "libboost_filesystem-vc6-mt-gd-1_31.lib"
Do you have any suggestions?
What do you mean by "include the filesystem.dll" ?

"Edward Diener" <eddielee@tropicsoft.com> wrote in message news:c0kb8e$863$1@sea.gmane.org...
Joe Gottman wrote:
I just upgraded to boost 1.31. I use filesystem with MSVC 6.0, but I don't use the jamfiles to create my .dsp and .dsw files. I just created simple projects myself. It worked previously, but now when I try to include the filesystem.dll file, I get the error
LINK : fatal error LNK1104: cannot open file "libboost_filesystem-vc6-mt-gd-1_31.lib"
Do you have any suggestions?
What do you mean by "include the filesystem.dll" ?
Link to the dll that I created.

Joe Gottman wrote:
I just upgraded to boost 1.31. I use filesystem with MSVC 6.0, but I don't use the jamfiles to create my .dsp and .dsw files. I just created simple projects myself. It worked previously, but now when I try to include the filesystem.dll file, I get the error
LINK : fatal error LNK1104: cannot open file "libboost_filesystem-vc6-mt-gd-1_31.lib"
Do you have any suggestions?
This is a guess but... You're likely running afoul of the autolink feature that puts a #pragma comment(llinker,...) into your code referencing "libboost_filesystem-vc6-mt-gd-1_31.lib". I'm guessing that that's not what your .dsp file called the filesystem dll. Just add /nodefaultlib:libboost_filesystem-vc6-mt-gd-1_31.lib to your linker settings and you should be fine (assuming you did correctly add the export library from the DLL you built to the link). -cd

LINK : fatal error LNK1104: cannot open file "libboost_filesystem-vc6-mt-gd-1_31.lib"
That's the name of the library that bjam would have built for you (multithreading, debug, static library), if you want to link to your own dll then define: BOOST_ALL_NO_LIB : turns off auto-linking. BOOST_ALL_DYN_LIB : turns on dll export/import support (this one needs to be defined both when you build and when you use the lib if you want to link to it as a dll rather than static lib). Full docs are in http://www.boost.org/libs/config/config.htm#user_settable John.
participants (4)
-
Carl Daniel
-
Edward Diener
-
Joe Gottman
-
John Maddock