我有一台MacBook,我正在尝试在终端中编译一个c ++程序,但它不断向我显示以下内容:
Undefined symbols for architecture x86_64:
"configura::Menu()", referenced from:
_main in main-ebfcbb.o
"configura::configura()", referenced from:
_main in main-ebfcbb.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [main] Error 1
我使用了以下命令:
make main
和g++ -o main main.cpp