// test.cc
#include <iostream>
using namespace std;
int main(int argc, char **argv)
{
cout << "out!\n" << endl;
}
用cc test.cc 编译,提示
未定义的引用cout, endl.
用的是redhat7.3
后来用cc -c test.cc 编译输出test.o
如何连接,连接什么库
用g++ -o test test.cc