Jump to content
  • Advertisement
Sign in to follow this  
T1Oracle

LNK1104: cannot open file 'libboost_filesystem-vc80-mt-gd-1_33_1.lib'

This topic is 4218 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to create a simple template function that takes an output iterator, a predicate, and a directory path, and puts a std::string into the output iterator for each file in the directory matching the predicate. I have never used boost filesystem before and now that I have finally gotten around to trying it, it will not compile. All I get is: LINK : fatal error LNK1104: cannot open file 'libboost_filesystem-vc80-mt-gd-1_33_1.lib' I have tried the "opendir" method and that would not compile in MSVC .Net 2005 Express Edition (using Windows XP Pro) either. I do like the idea of "portable" code and I don't want to use the Win32 stuff unless I have to. I don't remember how I installed boost as it was over a year ago and I was overseas for the past year. Any help will be greatly appreciated.

Share this post


Link to post
Share on other sites
Advertisement
First two things that come to mind...

Did you build boost 1_33_1? I think that's the latest normal release (December)... someone correct me if I'm wrong. It should copy all those libraries to a directory somewhere... like C:\Boost\lib.

If you have the library file, are your paths in VC++ set up to find it?
Tools/Options/Projects and Solutions/VC++ Directories.

If those two things are hunky dorey... I'm not sure what the problem could be. I believe the .libs are linked in automatically with a #pragma.

Share this post


Link to post
Share on other sites
I have a boost_1_33_1 directory, but it doesn't appear to have any lib files.

Boost filesystem is the only part of Boost that I haven't been able to use thus far. I currently have all of the smart_pointers working as they should. I also have MSVC .Net 2003 but I don't think should interfere.

I did just download boost 1.34, maybe if I install that it would work. I may try that later, although I'd rather just get what I have working. I can always try 1.34 when my new pc arrives (in 3 more days :) ). Then everything would already be on a clean slate.

Share this post


Link to post
Share on other sites
Quote:
Original post by T1Oracle
I have a boost_1_33_1 directory, but it doesn't appear to have any lib files.

Boost filesystem is the only part of Boost that I haven't been able to use thus far. I currently have all of the smart_pointers working as they should. I also have MSVC .Net 2003 but I don't think should interfere.


Hmmm... yeah don't bother with 1.34 yet... I believe it's still beta. You can build the .lib files for boost (takes about a half hour).

Do you have the file "bjam.exe" anywhere in your boost directory tree? (Use windows explorer "search") If you don't have it, you can download the executable from the same site (at sourceforge.net)

That's the tool you use for building Boost. They don't offer a download with all the .libs built, I'm afraid.

You'll have to build them on your own:

http://www.boost.org/more/getting_started/windows.html#or-build-binaries-from-source

They seemed to have changed the documentation on that; now it seems a whole lot more fool proof, yet uninformative. Oh well.

Share this post


Link to post
Share on other sites
In fact... do this:

There should be an index.html file in your "boost_1_33_1" folder. Open it, and click on "getting started".

That's the older, more informative document that should help you install the boost libraries and dlls.

Share this post


Link to post
Share on other sites
Quote:
Original post by Verg
Hmmm... yeah don't bother with 1.34 yet... I believe it's still beta. You can build the .lib files for boost (takes about a half hour).

It seems to be released now.
At least on the download page there's both a 1.34 beta and one called just 1.34. (And it's featured on the front page news list)

Quote:

http://www.boost.org/more/getting_started/windows.html#or-build-binaries-from-source

They seemed to have changed the documentation on that; now it seems a whole lot more fool proof, yet uninformative. Oh well.


Agreed. I build 1.34 a day or two ago, and yes, it's a lot easier to follow the instructions, but they've also removed all the interesting bits...

Share this post


Link to post
Share on other sites
I think I'll install 1.34 but I need to know: Do I have to uninstall the old boost before I install the new one? I don't see any advice on this online.

Share this post


Link to post
Share on other sites
Quote:
Original post by mrbastard
You may find it easier to use the prebuilt binaries from boost consulting

I went there, downloaded the install app, chose to install all of the variants for MSVC 8.0, chose to install all of the libraries for MSVC 8.0, and I still get the same error.

Nothing changed except now I have an uninstall program and some zips in my boost_1_33_1 directory.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!