레드햇 6.1에서 C++을 컴파일 하는데.. 전혀 될 생각을 않네요...
처음에는 코드가 잘못되었나 싶어서 그랬는데...
컴파일 테스트 하려고 가장 간단한 소스를 만들어서 해도 에러가 나네요.
GCC가 잘못 깔려있는지...
어디가 잘못되었는지.. 봐주시기 바랍니다.
--테스트 소스-- test.cpp
#include <iostream.h>
int main(){
cout << "OK";
}
--컴파일 과정--
[xxxx@devel testc++]$ cc test.cpp
/tmp/ccxAgTu3.o: In function `main':
/tmp/ccxAgTu3.o(.text+0x9): undefined reference to `cout'
/tmp/ccxAgTu3.o(.text+0xe): undefined reference to `ostream::operator<<(char const *)'
collect2: ld returned 1 exit status
[xxxx@devel testc++]$