Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » C++ 11 headers issue
C++ 11 headers issue [message #1034561] Fri, 05 April 2013 11:32
Ernst Maurer is currently offline Ernst Maurer
Messages: 27
Registered: January 2011
Junior Member

Hello,

I'm using MinGW and one of headers is <initializer_list>
it 's compiled successfully, but Eclipse parser can't parse this template correctly,
it doesn't highlight the include itself, then eclipse "sees" the header but shows the error: "Symbol 'initializer_list' could not be resolved"

I've opened initializer_list header and see that CDT highlights block (most of this header) as __GXX_EXPERIMENTAL_CXX0X__ is not defined:
"
...
#ifndef __GXX_EXPERIMENTAL_CXX0X__
# include <bits/c++0x_warning.h>
#else // C++0x
...
"
I believed that compiler option -std=c++11 defines this, is not it? because compiler works without errors.
But CDT parser have started to work properly only when I added __GXX_EXPERIMENTAL_CXX0X__ into C++General/Paths and Symbols/Symbols
why?
Previous Topic:installing GDB (Win)
Next Topic:Cross compiling with the Keil C166 tool chain
Goto Forum:
  


Current Time: Tue Jul 29 00:54:33 EDT 2014

Powered by FUDForum. Page generated in 0.01515 seconds