Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Indexer does not resolve std::size_t
Indexer does not resolve std::size_t [message #754591] Thu, 03 November 2011 08:53 Go to next message
Christophe  is currently offline Christophe
Messages: 4
Registered: November 2011
Junior Member
Is there a way to solve this issue ?
I located the definition of std::size_t into <cstddef>. This refers to ::size_t which should be defined in <stddef.h>, but apparently is not.

I also found the next thread: www.eclipse.org/forums/index.php/m/500606/
but the proposed workaround (configuring a define of size_t as unsigned) cannot be applied when size_t is prefixed by std namespace.

Thanx

Christophe

Eclipse Helios and Indigo
Compilers: g++ 4.4 and 4.5
OS: Linux
Re: Indexer does not resolve std::size_t [message #754797 is a reply to message #754591] Fri, 04 November 2011 08:12 Go to previous messageGo to next message
Axel Mueller is currently offline Axel Mueller
Messages: 1949
Registered: July 2009
Senior Member
No problem here to resolve std::size_t
You should say more about your setup/code if you want help.


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Indexer does not resolve std::size_t [message #754869 is a reply to message #754797] Fri, 04 November 2011 13:03 Go to previous messageGo to next message
Christophe  is currently offline Christophe
Messages: 4
Registered: November 2011
Junior Member
I am running eclipse indigo (but the issue was present with helios as well) under ubuntu with g++-4.4 (the problem remains with g++-4.5).
What environment are you running ?
Re: Indexer does not resolve std::size_t [message #754871 is a reply to message #754869] Fri, 04 November 2011 13:12 Go to previous messageGo to next message
Christophe  is currently offline Christophe
Messages: 4
Registered: November 2011
Junior Member
I configured "Paths and Symbols" of my C++ project with the following include directories (for all languages):
* /usr/include
* /usr/include/linux
* /usr/include/c++/4.4
* /usr/include/4.4/i486-linux-gnu
Re: Indexer does not resolve std::size_t [message #757465 is a reply to message #754591] Fri, 18 November 2011 09:47 Go to previous message
Christophe  is currently offline Christophe
Messages: 4
Registered: November 2011
Junior Member
I found a workaround by installing g++4.6 and adapting the include paths respectively.
Previous Topic:Cannot run programs OSX
Next Topic:problems with linking libraries
Goto Forum:
  


Current Time: Fri Aug 22 02:01:39 EDT 2014

Powered by FUDForum. Page generated in 0.01649 seconds