|
-
October 27th, 2011, 09:22 PM
#1
Boost Library headers won't compile
I Downloaded the library, followed the directions, copy and pasted the code for the Boost filesystem tutorial and Code::Blocks says that the header files have undefined references. Do I have a setting wrong or something?
Screenshot of build log
http://i.imgur.com/MFRh3.jpg
-
October 27th, 2011, 09:49 PM
#2
Re: Boost Library headers won't compile
If you take a look at the Boost documentation, you will see that for Boost.Filesystem:
Code:
Build & Link... Automatic linking
So, the library is not a header only library, hence you need to build it so it can be linked. Failing to do so results in undefined references, as you have encountered.
-
October 27th, 2011, 10:05 PM
#3
Re: Boost Library headers won't compile
I thought I had Built it though, I opened command prompt inside the boost folder and ran
bootstrap
.\b2
then after a while it told me it was done
-
October 27th, 2011, 10:31 PM
#4
Re: Boost Library headers won't compile
Maybe you failed to link correctly to Boost when you built your program?
-
October 27th, 2011, 10:48 PM
#5
Re: Boost Library headers won't compile
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|