Build throwing error “Command … llvm-gcc-4.2 failed with exit code 1”
-
27-10-2019 - |
Question
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:
- A .c file
- A .a library
- 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.!
Solution
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow