C 和C++混合编程时候,Cpp文件引用C的头文件时候,比如
a.h a.c b.cpp中引用 a.h 必须这样:
extern "C"
{
#include "a.h"
}
void do_something()
{
}
C 和C++混合编程时候,Cpp文件引用C的头文件时候,比如
a.h a.c b.cpp中引用 a.h 必须这样:
extern "C"
{
#include "a.h"
}
void do_something()
{
}