Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Newbee trying to compile "hello world" on Mac
Newbee trying to compile "hello world" on Mac [message #906815] Sun, 02 September 2012 17:04 Go to next message
Darryl Griffiths is currently offline Darryl GriffithsFriend
Messages: 5
Registered: September 2012
Junior Member
Hi,

I am a newbee that is trying to compile my first C++ project "hello world" on a Mac 10.7 (Lion)

I am familier with Eclipse as I have learned to code Java/Android, but I thought I would explore C/C++

I am not sure if my system is set up correctly, but after googling GGC people were suggesting to download Xcode. So I have done that already and setup a executable "hello world" with Cross GCC toolchains, then clicked finished. Soon as I try to run I get a message "Binary not found". So after searching you tube I seen somebody on Linux clicking "build project" first. Every time I build, something happens(progress bar, etc), but I get no binary folder in the "project explorer" and I continue to get the previous message.

Again, if I am doing something wrong or I need to install more files, please could you point me in the right direction Smile

Many thanks

#include <iostream>
using namespace std;

int main() {
	cout << "Hello People!" << endl;
	return 0;
}


18:33:38 **** Incremental Build of configuration Debug for project test ****
make all 
make: Nothing to be done for `all'.

18:33:38 Build Finished (took 139ms)


After experimenting more I have managed to build the project, but now I am getting this error:

Error starting process.
Exec_tty error:Cannot run program "/Users/dazgti/Documents/CPP/test/src/test.cpp": Unknown reason
Exec_tty error:Cannot run program "/Users/dazgti/Documents/CPP/test/src/test.cpp": Unknown reason
Exec_tty error:Cannot run program "/Users/dazgti/Documents/CPP/test/src/test.cpp": Unknown reason

[Updated on: Sun, 02 September 2012 18:03]

Report message to a moderator

Re: Newbee trying to compile &quot;hello world&quot; on Mac [message #906969 is a reply to message #906815] Mon, 03 September 2012 03:40 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3244
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 09/02/2012 11:04 AM, Darryl Griffiths wrote:
> Hi,
>
> I am a newbee that is trying to compile my first C++ project "hello
> world" on a Mac 10.7 (Lion)
>[snip]

Please read sticky posts at top of forum.
Previous Topic:eclipse reinstallation error
Next Topic:Spring with tomcat
Goto Forum:
  


Current Time: Sun Nov 23 04:52:01 GMT 2014

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

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