score:0
You can compile and run the source code also by Right Click On Project>Run C/C++ Code Analysis. This will solve your problem.
score:0
I finally figured this out. Flushing the Eclipse Indexer as mentioned in the top voted answer didn't work for me. This is what I had to do:
I went to: Project -> Properties -> C/C++ General -> Paths and Symbols -> Includes
Here I had the path for my include directory, but what I had to do was delete the directory path, and then re-add it making sure to check the box "Add to all configurations". I also checked the box "Add to all languages", but I don't think that is necessary.
After this, you may need to then click on Project -> C/C++ Index -> Rebuild. I didn't need to, but you might. Also, obviously instead of C/C++ in the paths above, it will be Java or whatever language you are dealing with.
score:1
I had the same problem. It take place when in included file I'd used
namespace std
without using it in main file or vice versa. Do check using namespace equally.
score:5
Turns out I needed to change Code Analysis settings that are on Launching tab, and I simply did not see that tab.
score:76
I had the same problem. It could be resolved by flushing the Eclipse indexer.
I used the projects context menu and selected Index->Rebuild
and Index->Freshen All Files
. The last removed the error messages.
Source: stackoverflow.com
Related Query
- Eclipse c++ Type could not be resolved error even though build is successful
- C++ error Type 'std::thread' could not be resolved Eclipse Mars 4.5 , Ubuntu 12.04
- Android NDK in Eclipse Type size_t could not be resolved
- Error : Type 'JNIENV' could not be resolved
- Type 'EGL_DEFAULT_DISPLAY' could not be resolved error while constant is clearly defined
- Maven build fails with error message Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4 or one of its dependencies could not be resolved
- Eclipse CDT: Type std::string could not be resolved
- in play framework, the file xx.java could not be compiled. error raised is : the import yyy cannot be resolved in eclipse
- Struct Type Could Not Be Resolved C++ in Eclipse
- Android NDK Source Compiled & Build Successfully - But Function 'to_string' could not be resolved in Eclipse IDE
- Getting "Error: Could not find or load main class aQute.launcher.Launcher" in Eclipse IDE even though it works in command line
- Graph can not be resolved to a type eclipse error
- Type Could Not Be Resolved Error
- Eclipse : does it sometimes cause an error even though it has not an issue with code?
- artifacts could not be resolved error while creating Eclipse Maven project
- Exporting a product (on top of Eclipse e4) and trying to launch the same leaves behind a error stating that come Bundles could not be resolved
- class not found exception in eclipse even though the user library containg jar file is in java build path
- Type 'ssize_t' could not be resolved eclipse cdt
- Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved
- Eclipse error ... cannot be resolved to a type
- Eclipse CDT: Symbol 'cout' could not be resolved
- Eclipse could not delete error
- "string could not resolved" error in Eclipse for C++ (Eclipse can't resolve standard library)
- Eclipse on Mac, getting "Specified VM install not found" error when trying to build
- Eclipse C++: Symbol 'std' could not be resolved
- Eclipse Indigo CDT: Function could not be resolved
- error , Symbol 'vector' could not be resolved
- Eclipse Build Error "A class file was not written. The project may be inconsistent, if so try refreshing this project and building it"
- Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved
- Checkstyle Error in Eclipse - Could not instantiate Tab character
More Query from same tag
- eclipse android string to Jsonarray
- How to change Eclipse folder structure
- Problems setting up X-Debug in Eclipse
- Rename application Package generates fatal error "Fatal error occurred while performing refactoring"
- GWT causes Eclipse to fail to launch on Windows XP
- Creating compile time custom annotations
- Configure Eclipse for Phonegap build
- How do I set up Eclipse/EGit with GitHub?
- How to get IDE support for Aspect J Working in Eclipse
- Running TestNG testng.xml tests from Eclipse
- m2e default lifecycle when adding webapp to tomcat server
- Difference between "copy" and "copy qualified name"
- Eclipse Neon won't start due to Provisioning exception
- EclipseFP doesn't working
- different log4j.xml when exporting jar from eclipse
- version control for one-man project using eclipse?
- Setting start levels & auto-start of Eclipse plug-ins: p2.inf vs product definition
- java.lang.NoClassDefFoundError Exception in Exported JAR From Eclipse With Library depenndency
- AspectJ with Maven (still) not working
- Can I add an ActionListener to a JButton that is not explicitely defined?
- Do goclipse goarch settings matter?
- Android ADT - Eclipse | Dont changes R.java when editing or adding Ids in views / layout files
- Equating Objects to Booleans - IntelliJ vs Eclipse
- Getting error in executing OWLAPI
- Java Spring and Google App Engine
- How to solve the connection when install aws toolkit on eclipse Neon?
- How to read a pdf from URL in the native pdf reader without saving it in phone memory (Eclipse)
- How to get a folder in eclipse to refresh its content or use external folder
- In Eclipse, how do you specify a file using the "Workspace..." syntax (e.g. ${workspace_loc:/myworkspace} ) (for a console log)?
- How to save/open files on server with GWT