How to Compile RHT with your Application
To use RHT in your application, you must make sure a few things
are done.
Required Include Files: Make sure your include
path covers the following relative paths from the root of the binary
distributions:
- include/spread
- include/rht
- include/stdutil_0.9.3a
- include/stdutil_1.0.0a
From the source distribution, make sure your include
path covers the following relative paths from the root directory:
- spread-src-3.17.3
- src
- StdUtil-src-1.0.0a\src
- stdutil-src-0.9.3a\src
Required Defines: Make sure these #defines are made
in your code.
- STD_USE_EXCEPTIONS (if exception handling is desired)
- SU_USE_EXCEPTIONS (if exception handling is desired)
- _WIN32_WINNT=0x0400 (Windows only)
- WINVER=0x0400 (Windows only)
- _REENTRANT (RHT requires multithreading on all platforms)
Required libraries: Make sure you link with the
following static libraries. The RHT, StdUtil, and Spread libraries
can be found in the platform/lib directory
relative to the root of this distribution. (Where platform is your
operating system)
Library |
Windows |
Linux |
Mac (OS_X) |
RHT |
libRHT.lib |
librht.a |
librht.a |
StdUtil version 0.9.3a |
stdutil.0.9.3a.lib |
libstdutil.a |
stdutil.0.9.3a.lib |
StdUtil version 1.0.0a |
sdtutil.1.0.0a.lib |
libStdUtil.a |
sdtutil.1.0.0a.lib |
Spread |
libtspread.lib |
libtspread.a |
libtspread.a |
Sockets |
wsock32.lib |
N/A |
N/A |
PThreads |
N/A |
-lpthread in your Makefile |
-lpthread in your Makefile |
|