Download Cleanscape C++lint User`s Guide

Transcript
Cleanscape C++lint User’s Guide
Check the results in the Reports window (right side of GUI). If there are no
errors, you are ready to run; if there are errors, add the system include
directories separated by spaces (e.g., /usr/include) to the Include Directories
text box on the Misc Options tab in the lower left frame of the GUI, and add
the same directory to the System include textbox, e.g., +libdir(/usr/include).
Command Line
1. If you intend to gcc or g++, run command line program setupgcc first to
determine internal settings such as defines, macros, and include directories.
2. Specify your target compiler by adding the appropriate co-xxx.lnt file from
the main/lbin/lf subdirectory.
3. Test your command line against examples/testcfg.c or testcfg.cpp
Observe the results produced. If there are no errors, you are ready to run; if
there are errors, add the system include directories, e.g.,
-i/usr/include +libdir(/usr/include)
to the command line.
IDE
1. Skip this section and proceed to Chapter 5.
The next three sections describe in detail
the operation of Cleanscape C++lint
• from the GUI
Part IV
• integrated within IDEs
Part V
• from the command line
Part VI
Page 11