User forums > Help
Fehlermeldung Compilieren "Hello World"
MajorTom:
Hallo,
beim compilieren von HELLO WORLD kommt folgender Fehler:
||=== Build: Debug in Test (compiler: GNU GCC Compiler) ===|
error: unrecognized command line option '-std=c++20'; did you mean '-std=c++2a'?
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Wer kann mir weiterhelfen?
oBFusCATed:
Use English please!
Obviously the compiler is telling you what is wrong :)
MajorTom:
After first installation of codeblocks, the compiler brings up the following failure message when I compile the original Hello World progam:
||=== Build: Debug in Test (compiler: GNU GCC Compiler) ===|
error: unrecognized command line option '-std=c++20'; did you mean '-std=c++2a'?
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
I have no idea what's wrong.
stahta01:
--- Quote from: MajorTom on May 17, 2020, 06:49:29 am ---After first installation of codeblocks, the compiler brings up the following failure message when I compile the original Hello World progam:
||=== Build: Debug in Test (compiler: GNU GCC Compiler) ===|
error: unrecognized command line option '-std=c++20'; did you mean '-std=c++2a'?
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
I have no idea what's wrong.
--- End quote ---
Find where you entered the option '-std=c++20' remove it.
You might try replacing it with '-std=c++2a'.
Edit: Some places to look
Project -> Build Options
Tab: Compiler Settings
Sub-Tab: Compiler Flags or Sub-Tab: Other Compiler Options
Tim S.
MajorTom:
I solved the problem:
1. Uninstallation of code::blocks
2. Removal of directory c:/user/"username"/appdata/roaming/codeblocks
3. Installation of code::blocks
Works!
Navigation
[0] Message Index
[#] Next page
Go to full version