User forums > Help

Build failed, " unrecognized command line option "-std=c++11" "

(1/3) > >>

bjor:
I'm going to lose my mind with Code::Blocks. I've installed and uninstalled it a 100 times by now, and every time I try something a little bit different than the last. Every time I try to build and run a program it outputs this into the "Build messages". I know it's a compiler problem but I still don't know how to solve it. This isn't the forum for it probably, but I don't know where else to turn to. If anyone could just nudge me into the direction why this is happening, I would be over the moon.

oBFusCATed:
https://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Inspect the build log. If nothing clicks you can post it and someone would be able to help you most probably.

bjor:
I've restored in settings -> Compiler to default. Now this message appears in Build Log:
/mingw/lib/libmingw32.a(setargv.o):(.text+0x33): undefined reference to `__chkstk_ms'
/mingw/lib/libmingwex.a(glob.o):(.text+0x6d2): undefined reference to `__chkstk_ms'
/mingw/lib/libmingwex.a(glob.o):(.text+0x8b8): undefined reference to `__chkstk_ms'
/mingw/lib/libmingwex.a(glob.o):(.text+0x900): undefined reference to `__chkstk_ms'
/mingw/lib/libmingwex.a(glob.o):(.text+0xa25): undefined reference to `__chkstk_ms'
/mingw/lib/libmingwex.a(glob.o):(.text+0xc15): more undefined references to `__chkstk_ms' follow
I've seen this after a quick google: https://stackoverflow.com/questions/18649173/how-to-solve-undefined-reference-to-chkstk-ms-on-mingw
Still have no clue how to fix this since I don't understand the solution here..

oBFusCATed:

--- Quote from: oBFusCATed on May 14, 2021, 03:25:44 pm ---Inspect the build log. If nothing clicks you can post it and someone would be able to help you most probably.

--- End quote ---

BlueHazzard:
Follow exactly the instructions given by obfuscated:
https://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

so we can try to help you

Navigation

[0] Message Index

[#] Next page

Go to full version