COpenDDSInterface是我封装的opendds接口类
//#include <dds/DCPS/Service_Participant.h>
#include "opendds_interface.h"
int main(int argc, char **argv)
{
int x = 1;
COpenDDSInterface object;
object.Init();
return 0;
}
当我包含头文件dds/DCPS/Service_Participant.h时,运行正常,
当我屏蔽包含头文件dds/DCPS/Service_Participant.h时,抛出异常,堆栈信息如下:

封装的COpenDDSInterface类 cpp文件是有引用dds/DCPS/Service_Participant.h等相关头文件的,不明白为什么一定要在程序入口函数所在cpp引用该头文件