Using the Pro*C/C++ Precompiler

After starting the Pro*C/C++ precompiler, click on the the Preferences menu item and select Default Output C++ File Name

Select Edit/Add and key in the source file name in the Input File dialog box.

Highlight the entry for the file added above and select Edit/Options from the menu.

In the Options dialog box:

To precompile, select File/Precompile from the menus.

If the compilation is successful, a green check mark will appear in the left-most column.  A file the same name as the source code and with extension cpp will be created.

If the compilation fails, a red X will appear.  To view the error messages, double click on the X.

To save the project, select File/Save from the menus.  The project will be saved with an extension pre.
 

Using Visual C++6 to Compile and Link the Program

Start Visual C++6.

Step 1:  Creating a Project


Step 2:  Adding files to the Project

You must add your C++ source file and the Pro*C/C++ library to the project.

To add the source file:

To add the Pro*C/C++ library: Step 3:  Specifying the location of the Pro*C/C++ Header Files To compile and link, select Build from the Build menu.
 

Executing the Program

Select Execute from the Build menu.