在redhet 9 下gcc 3.2.2的编译问题
我在redhat 9 下编译c++ 程序,默认安装的是gcc 3.2.2
写了一个最简单的程序,hello.cpp
编译时遇到下面的错误,
/usr/bin/ld: unrecognized option '--eh-frame-hdr'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
看样子是连接时出问题了,不知道编译环境哪里不对了,还是编译时需要额外的编译选项
将hello.cpp 更名为 hello.c,编译连接均无问题,请大侠指教