错误描述
Undefined symbols for architecture x86_64:
“MyLIs::MyLIs(char const*)”, referenced from:
_main in main.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
可能错误
It seems like the function log is not defined, but I defined it in the debug.cpp file. I’ve been working at this for hours… Can anyone help me?
Also, If it helps here are the commands Xcode is using the build the program:
Ld /Users/home/Library/Developer/Xcode/DerivedData/tiled-bhqwfqpsuugzhkagbmrhebnbgnpb/Build/Products/Debug/tiled normal x86_64 cd /Users/home/Documents/tiled export MACOSX_DEPLOYMENT_TARGET=10.10 /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.1