All: please run “gcc --version” and report back. This is mine:
C:\Program Files (x86)\CodeBlocks\MinGW\bin>gcc --version
gcc (tdm-1) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Possible cause : @krp running Fedora with new GCC 6 while we others (win/ubuntu) have earlier version of gcc
min max has changed in GCC 6:
This no longer compiles with GCC 6:
#define max(a, b) (a > b ? a : b)
#include <stdlib.h> int i = max(0,1);
The reason is that 'max' is used throughout the standard library, and it's undefined behaviour to define a macro that clashes with any name defined in the standard library. Previously <stdlib.h> was not provided by GCC's C++ std::lib, so didn't #undef min and max. Now GCC provides its own C++-conforming <stdlib.h> and so it does #undef min and #undef max.
Probably is! Got gcc version 5.4 on Xubuntu 16.04 and it works. I’m looking quickly through the package repository on Fedora 25 and the only other gcc version available seems to be 3.4… and when I try to build with it it says there’s no support for stdc++11… and when I try with 98 it doesn’t work. I don’t have time to play with this right now, but I’ll try later tonight if nobody figures it out until then.
yea, idk whats going on, these are standard library errors, i tried diferent codeblocks, tried reinstalling mingw
i get diferent errors but there all in stl or mingw library’s
idk if there is a version problem
have checked with codeblocks win32 so its not the compiler itself
But that message about 'cannot find __gxx_personality" is definitely a compatibility issue and am willing to bet its to do with the exception handling (sjlj) that is a compile-time setting used when MinGW is built
Btw are you trying to build or have you tried clean rebuild also? (.o files are regenerated)