为什么g++编译通过了,而gcc却编译通过不了???
我的代码很简单
//test.cpp
#include <stdio.h>
class myclass
{
public:
myclass(){printf("Hello\n");}
};
int main()
{
myclass my;
return 0;
}
用g++ test.cpp能够通过
但我用gcc test.cpp却说什么
/tmp/cchSAZf3.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
请问到底是gcc不支持c++,还是我的指令有问题啊?