g++与gcc

编译c++时

g++   -o   test   test.cc

gcc   -o   test   test.cc   -lstdc++  (-lm)

你可能感兴趣的:(c,gcc)