Duplicate symbol_main
c++, xcode
Solution
It looks like you are defining a `main` in some of the code used to make the `Uno.o` object file. You can only have one `main`, so objects used to build libraries should not define a `main`. This should only be defined in the application itself.
This a linker error and it likely you would encounter it with other IDEs. You need to find where in `Uno.o` the `main` is defined and remove it.
Problem
I've been looking for solutions for this problem but them didn't work for me! I've been having a lot of problems compiling programs. When I'm trying to execute a program in Xcode appears: duplicate symbol _main in /Users/LauraChaparro/Library/Developer/Xcode/DerivedData/Busqueda-ercduihvfosqcoczkrgljkkmgxam/Build/Intermediates/Busqueda.build/Debug/Busqueda.build/Objects-normal/x86_64/Uno.o and /Users/LauraChaparro/Library/Developer/Xcode/DerivedData/Busqueda-ercduihvfosqcoczkrgljkkmgxam/Build/Intermediates/Busqueda.build/Debug/Busqueda.build/Objects-normal/x86_64/main.o for architecture x86_64 I don't understand why this happens! Is a C++ project... Or if you can recommend me another IDE I'll be really thankful!