こんにちは。NoMaYです。アセンブラソースでも以下のメッセージが表示されますけれども、これは消せないのかな?、、、W0511187:CC-RL V1のオプション"-Odefault"の評価期間の有効期限が切れています。暗黙に"-Olite"指定に変更します。引き続き"-Odefault"を利用したい場合は製品の購入を検討ください。明示的に"-Olite"か"-Onothing"を指定することで、この警告は消えます。以下、CS+の画面コピーです。
こんにちは。NoMaYです。CC-RL V1.12のC++14対応に関して、以下のユーザーズマニュアルには以下の通り記載されているのですけれども、実際に試してみると、ユーザーズマニュアルの記載とは異なり、以下のマクロが定義されているようですね。ユーザーズマニュアルwww.renesas.com/us/en/document/mat/cc-rl-c14-technical-preview-version-users-manual#page=13「3.2.2 MacrosThe Table 6 shows the macros whose definitions differ along with the parameter given for the option -lang. Please also refer to “4.2.2 Macros” in the CC-RL Users’ Manual as well for detail of the other macros.Note that the values in the table are in decimal.Table 7 Macros
Name Definition when -lang=cpp14 is specified__cplusplus 201402L__clang__ 1__STDC_HOSTED__ 0__STDC__ 1__STDC_VERSION__ Undefined__STDC_IEC_559__ Undefined
」ソース: test20230502_2.cpp
#ifndef __cplusplus#error __cplusplus is not defined.#endif#ifdef __STDC_IEC_559__#error __STDC_IEC_559__ is defined.#endif
コマンド: test20230502_2.bat
ccrl -cpu=S3 -lang=cpp14 -Olite -c test20230502_2.cpp
エラーメッセージ:
W0519999:CC-RL V1.12.00の"-lang=cpp14"オプションはテクニカルプレビュー版になります。製品開発には使用できません。test20230502_2.cpp:5:2: error: __STDC_IEC_559__ is defined.#error __STDC_IEC_559__ is defined. ^1 error generated.