Cannot Compile C Code

1 post / 0 new
Last seen: 2 years 11 months ago
Joined: 11/15/2019
Posts: 1
Cannot Compile C Code


I'm having some issues compiling C code generated from some .idl files by RTIDDSGEN. I'm running RTI Connext DDS 5.2.0 on a CentOS 7.5 machine, using GCC 5.3.1. I have included the console output from trying to run make -ef libcfdatamodel.mak from the $UCS_HOME/CF_DM/CFDataModel/src/ directory.  Due to the output, I suspect that either some of my environment variables are incorrect,

or possibly the issue may lie in the #ifdef block starting at line 24 in the osapi_type.h file (/opt/rti_connext_dds-5.2.0/include/ndds/osapi/osapi_type.h).  

Any light shed on this would be highly appreciated.



#define RTI_64BIT 1 //added this line
#define RTI_UNIX 1 //added line
#define RTI_LINUX 1 //added line

to the top of osapi_type.h fixes compilation issues - however this seems... more like a patch than a fix...

EDIT: I pursued my original suspicion, and it turns out it was correct: The necessary environment variables on the system weren't properly set. Hopefully, that helps out someone in the future. This topic is closed AFAIC.


Package icon mak_log_libcfdatamodel.zip180.71 KB