c++ - What causes the Eclipse CDT Unresolved inclusion: <iostream> -


just installed latest eclipse ide , following included c++ user guide right 'before begin' section.

the simple application completed once got makefile project , c++ file tutorials, got "unresolved inclusion: <iostream>" error , bunch of others related "cout, cin, endl" because of it.

i followed tutorials instructed , not sure why occurred. have since corrected following this answer, want know why happens, since following official tutorial , have add c++ include path every project on eclipse?

related question

that first error in screenshot linked in comments provides clue problem.

if go preference page mentioned in error's "location", you'll see there field called "command compiler specs" contents like:

${command} ${flags} -e -p -v -dd "${inputs}" 

this command eclipse tries run compiler output built-in include paths , other similar information.

the fact you're getting error program "-e" not found in path suggests variables ${command} , ${flags} evaluating empty strings, first actual token in command (which shell tries interpret program name) -e.

i'm not sure why variables evaluating empty, should able work around issue replacing ${command} g++ (presumably g++ in path).


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -