To link to the C API, you must:
Include the header file optaddr.h in your application.
Add the optaddr.h, optima.h, and statusvalues.h header files to your project. These files are in the <Installation Directory>\server\api\c\inc directory.
- Link your application to the appropriate library for your platform:
- Windows: optaddr.lib (stub library for optaddr.dll)
- Linux: liboptima.so
These files are in the <Installation Directory>\server\api\c\lib directory.
Place the library where your application will be able to access it, either by including the <Installation Directory>\server\api\c\dll directory in the PATH environment variable, or by copying the files to an OS system directory or to the same directory as your application and ensuring the current directory is in your PATH environment variable.