User forums > Using Code::Blocks

CodeBlocks can't find #include <Random.h>

<< < (2/2)

Miguel Gimenez:
Did you edit Search directories -> Compiler? The content you posted didn't have the BOOSTINCLUDE variable. Add C:/MinGW/boost/include/boost to search directories and test again; when you get it working do the conversion to a custom variable.

hubert:
Hello Miguel,

yes, I  edited the  Search directories -> Compiler and I have the BOOSTINCLUDE variable.
I tried your idea >>>
Add C:/MinGW/boost/include/boost to search directories and test again....

It does not work !
I've got to go now, but I will continue on that Problem tomorrow and then I can send you all the configurations of mine...
Thanks, perhaps Hearing of you tomorrow

hubert

stahta01:
Post a build log!
http://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Krice:
Boost document and their example seems to indicate that you don't include random.h but one or more of random engine .hpp headers in this list:

http://www.boost.org/doc/libs/1_64_0/doc/html/boost_random/reference.html#headers

Miguel Gimenez:
In fact random.h does not exist, the correct name is random.hpp

Navigation

[0] Message Index

[*] Previous page

Go to full version