Home > Back-end >  Encapsulate calling opendds run abnormal problem
Encapsulate calling opendds run abnormal problem

Time:02-21


COpenDDSInterface is my encapsulation opendds interface class
 
//# include & lt; DDS/DCPS Service_Participant. H>
# include "opendds_interface. H"

Int main (int arg c, char * * argv)
{
Int x=1;
COpenDDSInterface object;
Object. The Init ();

return 0;
}


When I include the header file DDS/DCPS/Service_Participant h, running normally,
When I block include the header file DDS/DCPS/Service_Participant h, an exception is thrown, the stack information is as follows:

Encapsulated COpenDDSInterface CPP file reference is a DDS/DCPS/Service_Participant h header file, related to don't understand why must be in the CPP program entry function reference the header files
  • Related