Xcode C++ :: Duplicate Symbols for Architecture x86_64

前端 未结 2 372
遇见更好的自我
遇见更好的自我 2021-01-01 20:42

I am new to Xcode and when I build the following code (an MWE), I get the following error

ld: 3 duplicate symbols for architecture x86_64 clang: err

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-01 21:29

    For me, changing 'No Common Blocks' from Yes to No ( under Targets->Build Settings->Apple LLVM - Code Generation ) fixed the problem.

    enter image description here

提交回复
热议问题