SeniorShizzle
SeniorShizzle

Reputation: 984

Build throwing error "Command ... llvm-gcc-4.2 failed with exit code 1"

Here's the log from the build. This is a brand new project in Xcode 4, so the only non-regular things in it are as follows:

  1. A .c file
  2. A .a library
  3. A bunch of header files

I've been playing with the build settings and searching for answers for a couple of hours now to see if it would go away, but it didn't. Any help you have would be appreciated.!

The output (click for a larger image):

Upvotes: 1

Views: 2975

Answers (1)

Carl Norum
Carl Norum

Reputation: 224834

You have a duplicate symbol error - your program can't have two functions called main(). Remove one of them, and you should be able to move forward.

Upvotes: 5

Related Questions