Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: jeffsturmann on January 22, 2014, 01:49:49 am
-
Hello,
I´m using MinGW 4.8.1 thread-posix and CodeBlocks 13.12 (with c++11 flags)
The headers of C++11 can´t be found by IDE editor and the code completion doesn´t show
any suggestion to class members of the C++11 classes.
The most weird behavior, is that the program compiles and runs fine using the c++11 features
(although the editor doesn´t recognize it).
Some one can tell me how to fix it?
-
Fix is already in the repository, but I'm affraid no nightly build for Windows is available.
The easies DIY fix is adding:
__cplusplus 201103L
__GXX_EXPERIMENTAL_CXX0X__ 1
to Your project/compiler #defines tab, so the CC will include C++11 features when parsing headers.
GCC 4.8.1 doesn't recognise c++11 standard as experimental anymore and that's what causes this issue, since Code::Blocks parser was expecting only experimental headers.
-
nightly build somewhere this weekend
-
I putted this two flags in #defines tab of Settings->Compiler of CodeBlocks.
But now, when i compile the program, a error is showed, saying "No such file or directory" twice (one for each flag, i think).
Someone (again) know how to solve this?
??? :-\
-
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
-
Don't forget to declare defines as "FOO=BAR". Note the equality sign...
-
Don't forget to declare defines as "FOO=BAR". Note the equality sign...
OT, @Morten, I found that some of your reply has the subject "Re:", it that caused by design? Or a bug of Phone access interface of our forum?
-
Or a bug of Phone access interface of our forum?
The latter.