|
我的系统是debian sarge, gcc version 3.35
代码如下:
#include <iostream>
using namespace std;
int main ( ) {cout << "Hello,World !" << endl;}
gcc -o test test.cpp
然后出现提示说
/tmp/ccuXRbfb.o (.......)
undefined refence to "std::coun"
/tmp/....................
.........................
等
不知道怎么回事??请大大指教
btw,编译c程序一点问题都没有。 |
|