User forums > Help

using boost/filesystem

<< < (5/6) > >>

TDragon:
Okay, the article is not quite right. I forgot about the "boost-1_35" subfolder in the includes directory. Will now correct it.

You can either (A) add the "boost" global variable and project search folders as per the skipped steps in the Wiki article, using "C:\CodeBlocks\include\boost-1_35" for the include field ("C:\CodeBlocks" for the base field), or (B) add "C:\CodeBlocks\include\boost-1_35" directly to your project's Compiler search directories.

Really, though, you should have been able to figure that out on your own. It's as simple as seeing that you want to include boost/regex.hpp, and seeing that the path boost/regex.hpp is in C:\CodeBlocks\include\boost-1_35.


--- Quote from: kanesoban on July 19, 2008, 04:28:44 pm ---Now, that i am looking at the bjam output, while it is a big mess, i can see a lot of g++ related "failed" messages.

--- End quote ---
This may or may not be normal. Hopefully the libraries you want are getting built.

kanesoban:
Well, i first did A, and got this while compiling the project:

C:\CodeBlocks\MinGW\bin\ld.exe: cannot find -lboost_regex-mgw34-mt-1_35.lib

With option B it was the same error.

I tried googling what can cause this type of error, but no luck so far.

MortenMacFly:

--- Quote from: kanesoban on July 20, 2008, 01:49:21 pm ---C:\CodeBlocks\MinGW\bin\ld.exe: cannot find -lboost_regex-mgw34-mt-1_35.lib

--- End quote ---
this error indicates that you entered "boost_regex-mgw34-mt-1_35.lib" into the linker options which is wrong. please enter "boost_regex-mgw34-mt-1_35" (notice the missing ".lib").

In addition: You are using the MinGW compiler, right? I wonder why you get ".lib" files when you compile Boost. Using MinGW you should have compiled ".a" files...?! Probably you are mixing MinGW compilation with some unsupported format (e.g. you compiled boost wit a compiler that is not compatible with MinGW)???

TDragon:

--- Quote from: MortenMacFly on July 20, 2008, 03:54:49 pm ---In addition: You are using the MinGW compiler, right? I wonder why you get ".lib" files when you compile Boost. Using MinGW you should have compiled ".a" files...?! Probably you are mixing MinGW compilation with some unsupported format (e.g. you compiled boost wit a compiler that is not compatible with MinGW)???

--- End quote ---

Nope, Boost Build causes GCC to create .lib files as of Boost 1.35.

MortenMacFly:

--- Quote from: TDragon on July 20, 2008, 04:36:19 pm ---Nope, Boost Build causes GCC to create .lib files as of Boost 1.35.

--- End quote ---
I just tried: Indeed! ...how weired. :shock: That surely will cause some trouble. Strange they decided to do so.
The include folder also looks pretty strange include\boost\boost-1_35??? Huh? I just moved the files directly to boost and it seems to work as well.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version