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.
-
Create a new project in Microsoft Visual C++.
-
Select .
-
Select the Directories tab.
-
Click the New button in the Options dialog box.
-
Enter the path to the SDK include files, for example:
C:\PT840\SDK\PSCOMPINTFC\SRC\C++\SAMPLES\INC -
Click OK to save the options.
-
Open the Project Settings dialog box.
-
Select the C/C++ tab.
-
Select the General category.
-
Add PS_WIN32 to the preprocessor definitions.
-
Select the Link tab.
-
Select the Input category.
-
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.
-
Click OK to save the settings.