VisualAge C++ can output a number of messages that describe problems or potential problems encountered during a build. Many of these messages describe conditions detected while your code is being compiled and linked. Other messages report problems that relate to your configuration file or steps of the build process other than compiling and linking.
You see these messages in a Message view of the IDE when you build from the IDE, or on the console when you build with the vacbld command.
Each message is assigned one of the following levels of severity, depending on the condition that it represents.
To some extent, you can control how VisualAge C++ handles errors by building with the options listed below. For example, you reduce the number of message you receive from a build by setting the minimum severity level for messages to be output.
| Build Option | Description |
|---|---|
| report(level, level) | Determines the minimum severity of messages to be produced during builds. |
| Specifies that a specific message be output. | |
| Suppresses a specific message. | |
| Specifies that an information or warning message be treated like an error. | |
| Determines which groups of information messages are output during C compilation. |
You can also control what messages are generated by using the following preprocessor directives in your source:
| Preprocessor Directive | Description |
|---|---|
| Controls the generation of specific messages | |
| #pragma info | Specifies which groups of diagnostic messages to output. |
Although
pragmas usually override build options, the report options and
#pragma report override #pragma info so that you have greater
control of information message output.
The
#pragma info preprocessor directives override build option info(grp).
Each message has a unique identifier that consists of a three-
or four-character prefix followed by four decimal digits. Use
this identifier in the build options and pragmas. The prefix for
most build messages is "CPPC". Messages for C can also
start wtih "EDC".
![]()
On OS/2 and Windows NT
platforms some messages that relate to code generated from C++
sources can also start with "ECC".
For
example, you can suppress warning that C++ friend declarations do
not conform to the C++ standard, by applying the following build
option to your C++ source files:
report(disable, "CPPC0070")
![]()
Incremental C++ Build
C Compilation
![]()
Set Build Options
Build
View Build Messages
