How to #include properly in Dev-C++?

Dec 6, 2012 at 11:41pm
I downloaded the Boost libraries and I can't get them working.
In my Compiler Options for libraries I put
"...\boost_1_52_0\lib"
and for C++ includes I put
"...\boost_1_52_0\boost". (I assume this is the include folder)

For a test I try #include <threads.hpp> or #include "threads.hpp" and I get this:

In file included from Test.cpp:7:
C:/Program Files/boost_1_52_0/boost_1_52_0/boost/thread.hpp:13:35: boost/thread/thread.hpp: No such file or directory
C:/Program Files/boost_1_52_0/boost_1_52_0/boost/thread.hpp:14:47: boost/thread/condition_variable.hpp: No such file or directory
C:/Program Files/boost_1_52_0/boost_1_52_0/boost/thread.hpp:15:39: boost/thread/exceptions.hpp: No such file or directory
C:/Program Files/boost_1_52_0/boost_1_52_0/boost/thread.hpp:16:34: boost/thread/mutex.hpp: No such file or directory
C:/Program Files/boost_1_52_0/boost_1_52_0/boost/thread.hpp:17:33: boost/thread/once.hpp: No such file or directory
C:/Program Files/boost_1_52_0/boost_1_52_0/boost/thread.hpp:18:44: boost/thread/recursive_mutex.hpp: No such file or directory
C:/Program Files/boost_1_52_0/boost_1_52_0/boost/thread.hpp:19:32: boost/thread/tss.hpp: No such file or directory
C:/Program Files/boost_1_52_0/boost_1_52_0/boost/thread.hpp:20:40: boost/thread/thread_time.hpp: No such file or directory
C:/Program Files/boost_1_52_0/boost_1_52_0/boost/thread.hpp:21:34: boost/thread/locks.hpp: No such file or directory
C:/Program Files/boost_1_52_0/boost_1_52_0/boost/thread.hpp:22:41: boost/thread/shared_mutex.hpp: No such file or directory
C:/Program Files/boost_1_52_0/boost_1_52_0/boost/thread.hpp:23:36: boost/thread/barrier.hpp: No such file or directory
C:/Program Files/boost_1_52_0/boost_1_52_0/boost/thread.hpp:24:35: boost/thread/future.hpp: No such file or directory

It seems like it's just not even bothering to go backwards to the main include folder and it's assuming it can just keep on going.
Dec 7, 2012 at 1:22am
Any help? ):
Dec 7, 2012 at 1:26am
DevC++ is deprecated. I'm gonna have to bookmark the link to the post that explains why. Basically, it hasn't been updated in ages to fix bugs and include new standards. Boost especially is pretty recent, either part of TR1 of C++11 standards so will not even exist in it. Try a newer compiler.
Dec 7, 2012 at 1:26am
Did you do all the cmd prompt stuff? Its not really that simply lol.

edit: I think i had to follow a youtube video to do it.

edit 2: if it helps, i think some kind of jam was involved.
Last edited on Dec 7, 2012 at 1:32am
Dec 7, 2012 at 1:30am
No, I use Code::Blocks, but I did have to update the GCC compiler runtimes myself since C::B comes with slightly out of date ones. The newer version (4.7.2) comes with C++11 support.
Topic archived. No new replies allowed.