Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Build error with Eclipse
Build error with Eclipse [message #1596976] Mon, 02 February 2015 02:19
Michael Inglis is currently offline Michael InglisFriend
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.
Previous Topic:GCC lpthread compilation woes
Next Topic:missing class org.eclipse.cdt.managedbuilder.core.headlessbuild
Goto Forum:
  


Current Time: Fri Mar 29 12:07:39 GMT 2024

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

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

Back to the top