有关g++编译调试的问题

打了个指针版的treap,想用gdb调试,用gcc -g ×××.cpp -o a 时却报错了——直接用gcc编译却不会报错,提示:对‘operator new(unsigned int)’未定义的引用....

试了几次用g++编译居然过了。。

大概c++程序本来就是用g++编译的吧。。注意一下= =

Sometimes it s the very people who no one imagines anything of. who do the things that no one can imagine.
原文地址:https://www.cnblogs.com/YCuangWhen/p/5188083.html