Good evening,
So I've been using CodeBlocks for a number of years while attempting to learn C++. However, after a recent re-installation of 20.03, I noticed that while my programs compile in the editor, the exe's they produce are smaller than usual (215kb v 2487kb), and the standalone exe will not run.
If my understaniding is correct, it's because certain compiler flags weren't set.
Now, whilst I appear to have remedied this, what would cause this to happen? Are those flags not set as default with a fresh installation? I installed 20.03 the first time so long I don't remember having to set flags.
For anyone else having the same problem , the flags I had to set were -static -static-libgcc -static-libstdc++ in the compiler flags section
Also, in the global compiler section. there are numerous things to 'set' eg, C++ compiler , linker for dynamic libs, linker for static libs, resource compiler, make program.
I've set all these to x86_64-w64-mingw32-g++.exe, but really have no idea what any of them are meant to be set to, and/or what the effects of using different (but similarly named) compliers would have.
Please advise.
Thankyou.
So several days and no replies? A veritable hive of activity! Surely somebody knows what all those different 'compliers' are and what the difference is?