Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse runs but can't build anything(trying to get new install to work)
Eclipse runs but can't build anything [message #789275] Thu, 02 February 2012 20:00 Go to next message
Brad Mellema is currently offline Brad MellemaFriend
Messages: 1
Registered: February 2012
Junior Member
I installed the 64 bit version of Eclipse for C++ today. I checked to make sure I have a 64 bit version of Java, which I do, it's version 1.6_29

I'm running a MacBook Pro with Lion 10.7.2 on an Intel Core 2 Duo processor and 8 GB of DDR3 RAM.

I read the posts I'm supposed to read as a newbie and I opened up the ini file and did the -vm fix, but the error messages didn't change.

I can start up Eclipse, but when I tested it with a simple program I get errors that appear to be related to the #include directive. Here's the code for the program:


//============================================================================
// Name : JavaTweak.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
using namespace std;

int main() {
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
return 0;
}

And here are the error messages:

Description Resource Path Location Type
Symbol 'cout' could not be resolved JavaTweak.cpp /JavaTweak/src line 13 Semantic Error
Symbol 'endl' could not be resolved JavaTweak.cpp /JavaTweak/src line 13 Semantic Error
Symbol 'std' could not be resolved JavaTweak.cpp /JavaTweak/src line 10 Semantic Error
Error launching external scanner info generator (g++ -E -P -v -dD /Users/Home/Documents/workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp) JavaTweak [Discovery Options] page in project properties C/C++ Problem
Error launching external scanner info generator (gcc -E -P -v -dD /Users/Home/Documents/workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.c) JavaTweak [Discovery Options] page in project properties C/C++ Problem
Program 'g++' is not found in $PATH JavaTweak [Discovery Options] page in project properties C/C++ Problem
Program 'gcc' is not found in $PATH JavaTweak [Discovery Options] page in project properties C/C++ Problem

Anyone know why I'm having problems or what is the fix? THANKS!
Re: Eclipse runs but can't build anything [message #789349 is a reply to message #789275] Thu, 02 February 2012 22:13 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

No matter about Java, this is still a C/C++ problem. Eclipse is running
okay; it's something to take up with the Eclipse CDT forum?

On 2/2/2012 1:00 PM, Brad Mellema wrote:
> I installed the 64 bit version of Eclipse for C++ today. I checked to
> make sure I have a 64 bit version of Java, which I do, it's version 1.6_29
>
> I'm running a MacBook Pro with Lion 10.7.2 on an Intel Core 2 Duo
> processor and 8 GB of DDR3 RAM.
>
> I read the posts I'm supposed to read as a newbie and I opened up the
> ini file and did the -vm fix, but the error messages didn't change.
>
> I can start up Eclipse, but when I tested it with a simple program I get
> errors that appear to be related to the #include directive. Here's the
> code for the program:
>
>
> //============================================================================
>
> // Name : JavaTweak.cpp
> // Author : // Version :
> // Copyright : Your copyright notice
> // Description : Hello World in C++, Ansi-style
> //============================================================================
>
>
> #include <iostream>
> using namespace std;
>
> int main() {
> cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
> return 0;
> }
>
> And here are the error messages:
>
> Description Resource Path Location Type
> Symbol 'cout' could not be resolved JavaTweak.cpp /JavaTweak/src line 13
> Semantic Error
> Symbol 'endl' could not be resolved JavaTweak.cpp /JavaTweak/src line 13
> Semantic Error
> Symbol 'std' could not be resolved JavaTweak.cpp /JavaTweak/src line 10
> Semantic Error
> Error launching external scanner info generator (g++ -E -P -v -dD
> /Users/Home/Documents/workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp)
> JavaTweak [Discovery Options] page in project properties C/C++ Problem
> Error launching external scanner info generator (gcc -E -P -v -dD
> /Users/Home/Documents/workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.c)
> JavaTweak [Discovery Options] page in project properties C/C++ Problem
> Program 'g++' is not found in $PATH JavaTweak [Discovery Options] page
> in project properties C/C++ Problem
> Program 'gcc' is not found in $PATH JavaTweak [Discovery Options] page
> in project properties C/C++ Problem
>
> Anyone know why I'm having problems or what is the fix? THANKS!
>
Previous Topic:Eclipse Marketplace Maven not updating dependencies
Next Topic:Fresh install on Mac OSX... Eclipse won't run
Goto Forum:
  


Current Time: Tue Jun 22 06:14:50 GMT 2021

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

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

Back to the top