OpenGl, Glut, Xcode problems

Hello, I am using xcode 4.41 and I have added the opengl, glut frameworks to a cocoa application. I used some sample code (irrelevant) that should work fine but when I run it, it gives me this error:
duplicate symbol _main in:
/Users/Olivier/Library/Developer/Xcode/DerivedData/Cousin-bfuuiinqokhlxgfylmohrqaelkmp/Build/Intermediates/Cousin.build/Debug/cousin.build/Objects-normal/x86_64/main-DB957718F3174A62.o
/Users/Olivier/Library/Developer/Xcode/DerivedData/Cousin-bfuuiinqokhlxgfylmohrqaelkmp/Build/Intermediates/Cousin.build/Debug/cousin.build/Objects-normal/x86_64/main-302A0B0EFD0A5990.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This is because there might be a duplicate symbol in my project but I cannot find the duplicate symbols. Is there any way to find out what is causing this error?

Thank you, a worried programmer
Topic archived. No new replies allowed.