the difference between g++ and gcc
This question already has an answer here:
Both are provided by the GCC toolchain, and both are [wrappers around] compiler front-ends, but they are not the same thing:
gcc
compiles C; g++
compiles C++. The C++ standard library symbols, and various other symbols required by the C++ runtime in order to support your C++ code, are only linked in with the latter (by default).
i just have a simple c main program and have a class, VoronoiDiagramGenerator.cpp and VoronoiDiagramGenerator.h is the class defination
I guess you mean a simple C++ program. C is not C++, and C++ is not C. They are two different languages.
链接地址: http://www.djcxy.com/p/85740.html上一篇: GCC:未定义的对vtable的引用
下一篇: g ++和gcc的区别