![]() |
![]() |
![]() |
![]() |
![]() |
Files and Compiling
General
To use OM Access a C++ compiler that can handle templates is needed, such as g++ 2.95.2, or MSVC 6.
There are some Makefiles together with the examples ($telelogic/orca/omaccess/examples) that might be usable as templates.
OM Access is based on the Public Interface; see PostMaster Reference.
UNIX
The following files should be included into the compilation/linking phase for UNIX is:
$telelogic/orca/omaccess/src/omaccess.cc$telelogic/orca/omaccess/src/pmtool.cc$telelogic/lib/<platform>lib/post.owhere $telelogic refers to the installation path, and <platform> can be one of linux or sunos5.
Two paths to the include files is also necessary:
-I$telelogic/orca/omaccess/include-I$telelogic/include/postExample 161 : Compile printclasses.cc with g++ on Solaris
g++ -o printclasses -I$telelogic/orca/omaccess/include \-I$telelogic/include/post \printclasses.cc \$telelogic/orca/omaccess/src/omaccess.cc \$telelogic/orca/omaccess/src/pmtool.cc \$telelogic/lib/sunos5lib/post.o
If Solaris is used, the switches -lgen -lsocket -lnsl have to be added.
Example 162 : Compile printclasses.cc with g++ on Solaris
g++ -o printclasses -I$telelogic/orca/omaccess/includes \-I$telelogic/include/post \printclasses.cc \$telelogic/orca/omaccess/src/omaccess.cc \$telelogic/orca/omaccess/src/pmtool.cc \$telelogic/lib/sunos5lib/post.o -lgen -lsocket -lnsl
The OM Access files could also be copied to a local directory to ease up compilation.
Windows
During runtime the DLL post.dll (located in a subdirectory to <installation directory>\sdt\sdtdir\wini386\include) must either be in the path or the directory the application is started from.
Microsoft Visual C++
Add the files omaccess.cc, pmtool.cc (can be found in <installation directory>\orca\src) and post.lib (can be found in <installation directory>\sdt\sdtdir\wini386\include\msvc50) to the project.
Add <installation directory>\orca\includes and <installation directory>\include\post to the include path.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |