Eclipse “cannot be resolved to a type”

“Cannot be resolved to a type” this message is probably the most annoying in Eclipse. It is caused by its Indexer which goes crazy if we forget to choose appropriate tool chain during creating or importing a new project. As a result Eclipse can’t find the system headers like stdint.h

You could find many advices on the Internet which may not work in case this error, e.g index rebuilding, project refreshing, tool chain changing etc. You can add missing paths to C/C++ General -> Paths and Symbols -> Includes manually but the fastest method is to import project again and set appropriate Tool Chain.Eclipse_Tool_Chain

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s