抱歉我的问题,我在大学里得到了一份作业,需要用C编程语言编写程序,但是当我在Mac OS上开始时(在学校我们使用OpenSolaris),我遇到了这个问题,我能在没有Unix安装的情况下解决它吗?
控制台输出:(截图)
MBP-Maxim:cv01 maxim$ g++ main.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
g++
是C++编译器。 - UnholySheep