1 Reply
      Latest reply on May 20, 2020 7:38 PM by OOPer
      chidambarfromkolhapur Level 1 Level 1 (0 points)

        I am using xcode first time. I have tried to execute c program but after running the program the buid gets failed it shows the following error message

         

        duplicate symbol '_main' in:

            /Users/dhruva/Library/Developer/Xcode/DerivedData/C-Programming-aptbsvpmnisjqadlhgfqlmggihfq/Build/Intermediates.noindex/C-Programming.build/Debug/C-Programming.build/Objects-normal/x86_64/main.o

            /Users/dhruva/Library/Developer/Xcode/DerivedData/C-Programming-aptbsvpmnisjqadlhgfqlmggihfq/Build/Intermediates.noindex/C-Programming.build/Debug/C-Programming.build/Objects-normal/x86_64/test.o

        ld: 1 duplicate symbol for architecture x86_64

        clang: error: linker command failed with exit code 1 (use -v to see invocation)