c调用c++

g++ main.c math.cpp

math.h中加入extern "C"

原文地址:https://www.cnblogs.com/xpylovely/p/10814827.html