1

I'm working on a Mac and using eclipse cdt. I'm able to use and compile all the c++ projects I currently have, but when I create a new one, it doesn't recognize the standard library. It underlines #include <iostream> in yellow, and, if I try and compile, the errors say it can't find iostream

sinθ
  • 11,093
  • 25
  • 85
  • 121

2 Answers2

2

This website might help you. (Section 2.1 Step 2 or just do a search on the page for iostream)

Deepend
  • 4,057
  • 17
  • 60
  • 101
1

Do you have command line tools (gcc, etc) installed? They were installed along with Xcode prior to OS X 10.8 and now you need to install them separately using Xcode UI. See this StackOverflow question for details.

Community
  • 1
  • 1
Eugene
  • 9,242
  • 2
  • 30
  • 29