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?
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
Post a Comment