C ++在MacOS中无法编译

时间:2019-11-16 23:16:55

标签: c++ macos compilation macos-catalina

我有一台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 maing++ -o main main.cpp

0 个答案:

没有答案