Include Files


Several important header files are needed to compile and link with SmartSockets. These files are normally included in C/C++ code with the #include C/C++ preprocessor directive.The SmartSockets header files are located in these directories:

UNIX:
$RTHOME/include/$RTARCH/rtworks  
OpenVMS:
RTHOME:[INCLUDE.RTWORKS]  
Windows:
%RTHOME%\include\rtworks 

Header files should be included with the angle-bracket syntax. For example, when using C, this inclusion line is used:

#include <rtworks/ipc.h> 

While for the C++ class library this inclusion line is used (in fact, the cxxipc.hxx file indirectly includes ipc.h):

#include <rtworks/cxxipc.hxx> 

Use of the angle-bracket syntax is preferred over the use of double-quotes:

#include "ipc.h" 

or

#include "pathname/ipc.h"  

On UNIX, using angle brackets requires using an argument to the C++ command:

$ CC -I$RTHOME/include/$RTARCH ... 

On OpenVMS, the logical RTWORKS directory is RTHOME:[INCLUDE.RTWORKS] so that DEC C++ uses that directory for <rtworks/cxxipc.hxx>.

On Windows, add the SmartSockets include directory %RTHOME%\include\rtworks to the list of Visual C++ Developer Studio project include directories. There are several example Visual C++ makefiles in %RTHOME%\examples\cxxipc that you can use as a starting point for your application executables.


TIBCO SmartSockets™ cxxipc Class Library
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com