Configuring Compilers for C++ Projects

To configure a compiler for the C++ project:

Note:

These instructions assume that you are using Microsoft Visual C++. If you use a different compiler, apply the equivalent settings for that product.

  1. Create a new project in Microsoft Visual C++.

  2. Select Tools, and then Options.

  3. Select the Directories tab.

  4. Click the New button in the Options dialog box.

  5. Enter the path to the SDK include files, for example:

    C:\PT840\SDK\PSCOMPINTFC\SRC\C++\SAMPLES\INC
  6. Click OK to save the options.

  7. Open the Project Settings dialog box.

  8. Select the C/C++ tab.

  9. Select the General category.

  10. Add PS_WIN32 to the preprocessor definitions.

  11. Select the Link tab.

  12. Select the Input category.

  13. Specify the full path to psapiadapter.lib for the Object/library modules.

    This is typically <PS_HOME>\src\lib\psapiadapter.lib. Make sure that this is the only entry for psapiadapter.lib.

  14. Click OK to save the settings.