RT,
本想用gcc来写c的,
习惯把文件的后缀改成了cpp
编译时还是gcc
可是就报上面的错了.
办法?
1.在参数中加入 -lstdc++
2.把后缀从cpp改成c
3.不要用gcc改为g++都可以