Build error with Eclipse [message #1596976] |
Mon, 02 February 2015 02:19 |
Michael Inglis Messages: 1 Registered: February 2015 |
Junior Member |
|
|
Hi, I'm new to C and C++, which I'm learning through an online course at lynda.com. The instructor uses Eclipse Juno for the demonstrations.
I've installed both the most recent version of Eclipse as well as Juno (which I am using now) and I can't get them to run even the simplest of C programs. When I click the green 'Run' button it says "Launch failed. Binary not found".
Several sites said to try building the program before running it. So I tried that and got the following error:
15:15:08 **** Incremental Build of configuration Debug for project Working ****
make all
Building target: Working
Invoking: MacOS X C++ Linker
g++ -o "Working" ./working.o
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [Working] Error 1
15:15:11 Build Finished (took 3s.76ms)
The code is very simple:
#include <stdio.h>
int main (int argc, char ** argv){
printf("Hello, world!\n");
return 0;
}
Any help here would be good.
|
|
|
Powered by
FUDForum. Page generated in 0.02898 seconds