Skip to main content
Knowledgebase
Home
Renesas Electronics America - Knowledgebase

In what situations should I use the “-change_message” linker option?

Latest Updated:09/18/2015

Question:

In what situations should I use the “-change_message” linker option?

Answer:

1. Use “-change_message” when you wish to change the levels (information, warning, or error) of messages.
By changing the level of information and/or warning messages into error, you can interrupt a build.
The procedure is as follows.

●CC-RH, CC-RL
(1) Set [Change information and warning message to error message], which is in the [Message] category from the [Link Options] tab of CS+, to [Yes].

●CC-RX
(1) Set [Change information and warning message to error message], which is in the [Others] category on the [Link Options] tabbed page of CS+, to [Yes].

2.Suppressing the output of a warning message during linking
The output of a warning message can be suppressed by changing the warning message to an information message, and suppress the output of information messages.
The procedure is as follows.

●CC-RH, CC-RL
(1) Set [Enable information message output], which is in the [Message] category o from the [Link Options] tab on CS+, to [No].
(2) Set [Change warning message to information message], which is in the [Message] category mentioned in (1), to [Yes].

● CC-RX
(1) Set [Enable information message output], which is in the [Others] category from the [Link Options] tab on CS+, to [No].
(2) Set [Change warning message to information message], which is in the [Others] category mentioned in (1), to [Yes].

3. To check for files to which E05602300 applies E05602300 is the message to be output when the same symbol is defined in multiple files. You can check for files which require changing, since the message indicates all of the files in which the symbol is defined, by changing this message to the warning level. The procedure is as follows.

(1) Set the following for [Other additional options] in the [Others] category, which is from the [Link Options] tab on CS+.
-change_message=warning=2300

Suitable Products
C Compiler Package for RH850 Family
C/C++ Compiler Package for RX Family
C Compiler Package for RL78 Family