Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse C/C++ error 1 duplicate symbol for architecture x86_64

Tags:

c++

eclipse

I'm getting these errors in Eclipse when running a simple program. - I have command line tools installed. Screen shot of my workspace in Eclipse

I'm really lost at what to do. I have been using eclipse for a Java course and then downloaded the C/C++ workstation though having a few issues. Any help is greatly appreciated. By the way I'm on Mac latest OS.

like image 625
uplearned.com Avatar asked Feb 26 '13 23:02

uplearned.com


1 Answers

It is likely you have two main()s. What is in your src folder? (Make sure there aren't any other c files compiling with yours.

like image 93
Bradley Delaune Avatar answered Oct 23 '22 11:10

Bradley Delaune