unix下的第一个c程序........简单问题!
源程序:
#include <iostream>
using namespace std;
void main()
{
cout<<"hello word!"<}
环境:Solaris,Workshop C++ compiler(CC)
用命令CC -c hellp.c通过
但是CC hello.c -o hello却出现
.../crti.o: In function '_cpp_finidata()');
.../crti.o(.cpp_finidata+()0x4):undefined reference to '_START_'
.../crti.o(.cpp_finidata+()0x4):undefined reference to '_END_'