xcode erorr

i use xcode to practice coding in c++ but i cannot see to overcome this error "2 duplicate symbols for architecture arm64" and "Linker command failed with exit code 1 (use -v to see invocation)"

it is becoming a big problem now please help me out here

Replies

How many main() functions and global variables with the same names do you have besides the one in main.cpp?

These are linker errors. To investigate further:

  1. Switch to the Reports navigation (View > Navigations > Reports).

  2. On the left, select a build that failed.

  3. In the middle, select the Link build step.

  4. Click the expand button (it’s a set of horizontal lines on the right of the selection).

  5. Look at the transcript to see what the linker is actually complaining about.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"