- 论坛徽章:
- 0
|
我用的是fedora core 1 写了一个弱智的c++程序test.cpp,程序内容如下:
#include <iostream>;
int main(){
return 0;
}
用gcc编译的时候出现以下错误信息
/tmp/ccdSOG0Q.o(.text+0x36): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::ios_base::Init::Init[in-charge]()'
/tmp/ccdSOG0Q.o(.text+0x65): In function `__tcf_0':
: undefined reference to `std::ios_base::Init::~Init [in-charge]()'
/tmp/ccdSOG0Q.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
郁闷中,希望高人指点。 |
|