简体   繁体   中英

CDT on OS X Error: Symbol 'cout' could not be resolved

I'm trying to create a C++ project using Eclipse CDT on OS X using the following steps:

  1. Select File -> New C++ Project
  2. Select Executable -> Hello World C++ Project
  3. Set Toolchains : MacOSX GCC
  4. Set Project Name : MyC++
  5. Accept defaults for other values.

However, the error window shows:

  • Symbol 'cout' could not be resolved
  • Symbol 'endl' could not be resolved
  • Symbol 'std' could not be resolved

My environment specifics:

  • OS X 10.9.5
  • Eclipse CDT 4.2.2

最后,我下载并使用了Netbeans 8.0.2 C和C ++ Development ,它们开箱即用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM