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參考該頭檔案
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/261493.html
標籤:C++ 語言
上一篇:c++回傳資料失敗
