How to install Boost library

Mar 25, 2012 at 6:22pm
closed account (4ET0pfjN)
Hi, I am frustrated on how to install Boost library. I had originally got gcc,g++ compilers set up using Code Blocks, but I am lost in trying to follow how to install Boost library via CodeBlocks, does anyone know a simpler way to do so in Windows 7 32-bit?

I need help asap!
Mar 25, 2012 at 8:27pm
You just have to extract the boost subfolder in the archive to your MinGW include path, that's all.
Unless you want to use libraries that aren't header-only.
Mar 25, 2012 at 11:15pm
closed account (4ET0pfjN)
So in my path, I have: C:\Program Files (x86)\CodeBlocks\MinGW\bin;

so do I just copy the entire boost_1_49_0 directory into the above, so:

C:\Program Files (x86)\CodeBlocks\MinGW\bin\boost_1_49_0, sorry I am not good with this...
Mar 26, 2012 at 2:59am
No, you extract ONLY the boost subfolder from the archive to MinGW\include.
So basically just what I said in my first post.
Mar 26, 2012 at 5:17am
closed account (4ET0pfjN)
Ok, I am using VirtualBox to run Linux (Ubuntu) and I noticed that when I try to compile it in Linux Terminal it works but even after including the boost library as you mentioned, I get this message in Windows 7 Command Prompt:

g++ -o crypt crypt.cpp
crypt.cpp: In function 'int main(int, char**)':
crypt.cpp:26: error: 'strnlen' was not declared in this scope
crypt.cpp:33: error: 'isatty' was not declared in this scope

BUT I'm using the same file...
Topic archived. No new replies allowed.