抱歉我的问题,我在大学做作业,我需要用 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)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
14951 次 |
| 最近记录: |