Nokia Networks Home

Nokia nmake Product Builder

Quick Links

Related Products

How Come the Solaris Debugger Cannot Find My Source Code?

In order to use nmake cpp with the Solaris C++ compiler the ppcc script must be used. This script first calls nmake cpp to create a preprocessed .i file, and then runs the compiler against the preprocessed file instead of the original source code. For more information as to why this is necessary and how it works see the cpp and ppcc FAQs.

The reason the Solaris debugger cannot find the original source code is because the Sparcworks C++ compiler doesn't use the filename specified in the preprocessed file, but uses the filename given on the command line instead, which in this case is the .i file generated from nmake cpp.

To get around this problem there is a modified ppcc script which can be used with the Solaris C++ compiler. Note, this script should only be used with the Solaris Sparcworks C++ compiler, do not use it with any other compilers or platforms.

  1. Download the Solaris C++ ppcc script
  2. If you will be using only the Solaris C++ compiler then you can replace the existing <nmake_root>/bin/ppcc script with the modified script download from this page.
  3. If you will be using other compilers then we recommend you install the modified ppcc script as <nmake_root>/bin/ppcc.sol. When your makefiles are set to use the Solaris C++ compiler you must also set 'PPCC = ppcc.sol'.
Last Update: Friday,12-Aug-2016 10:49:10 EDT