Newbee trying to compile "hello world" on Mac [message #906815] |
Sun, 02 September 2012 13:04  |
Eclipse User |
|
|
|
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 
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 14:03] by Moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.07498 seconds