Prepare the C++ sample applications for OEM licensing
Prepare your c++ code sample files for OEM licensing before compiling and running.
If you use your application with Seat or Page Pack licensing, you can skip this task and proceed with the topic Compile and run the C++ sample applications.
-
Change to the working directory.
cd ~/sample/c++ -
Edit the sample.h file at the following points:
-
Set the value of USE_OEM_LICENSE to
1.
Running make right after this causes the compiler to issue an error message indicating that you need to change two lines in the sample.h file.
-
Add the file name of the LCX file you received or the LCXZ license file
you created by the license activation.
There is no need to specify an absolute path for the LCX or LCXZ license file name. For details, refer to the Licensing on Linux and MacOS and kRecSetLicense topics in the API documentation.
On handling OEM licenses with OPLicMgr, refer to the "Activate OEM licenses" section in the Getting Started Guide.
- Use the #include directive for the header file defining the OEM code.
- Comment out the #error line above the modifications.
-
Set the value of USE_OEM_LICENSE to
1.
- Proceed with the topic Compile and run the C++ sample applications.