Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Mac OSX Eclipse Indigo won't recognize cout ?
icon8.gif  Mac OSX Eclipse Indigo won't recognize cout ? [message #780906] Thu, 19 January 2012 16:32 Go to next message
Eclipse UserFriend
I am trying to use Eclipse to program in C++ for one of my college courses. I try and write hello world and it won't recognize cout ?
What the heck is up ? I installed xcode 4 and can run and build it fine on xcode.

Please help ! I am used to Eclipse and love it but I have to have it functional for my course.

#include <iostream>

int main (int argc, const char * argv[])
{

// insert code here...
std::cout << "Hello, World!\n";
return 0;
}
Re: Mac OSX Eclipse Indigo won't recognize cout ? [message #781058 is a reply to message #780906] Fri, 20 January 2012 04:23 Go to previous messageGo to next message
Eclipse UserFriend
Did you select the correct toolchain in the Project setup? The scanner discovery will call gcc/g++ to see where the system includes are located (see Project properties->C/C++ Build->Scanner discovery). Is the system header iostream resolved?
Re: Mac OSX Eclipse Indigo won't recognize cout ? [message #782935 is a reply to message #781058] Tue, 24 January 2012 14:10 Go to previous messageGo to next message
Eclipse UserFriend
Hey thanks so much ! I got it. I didn't mess with scanner, I changed the tool chain editor to macosx/c++ it works like a champ now!
Re: Mac OSX Eclipse Indigo won't recognize cout ? [message #783202 is a reply to message #782935] Wed, 25 January 2012 04:21 Go to previous message
Eclipse UserFriend
Clay Styer wrote on Tue, 24 January 2012 20:10
Hey thanks so much ! I got it. I didn't mess with scanner, I changed the tool chain editor to macosx/c++ it works like a champ now!

FYI, using the correct tool chain will automatically choose the correct scanner parameters.
Previous Topic:Run Command looks in wrong directory
Next Topic:Import error parser
Goto Forum:
  


Current Time: Mon Jul 14 20:42:47 EDT 2025

Powered by FUDForum. Page generated in 0.03093 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top