我的第一个unix下c++(hello word!)程序-----这种错误怎么解决!
源程序:
#include <iostream>
using namespace std;
void main()
{
cout<<"hello word!"<<endl;
}
环境: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_'