Hi, On 05/03/2017 13:03, Sam Varshavchik wrote: >> $ g++ -o utest u.c >> u.c: In function ‘int main()’: >> u.c:5: error: ‘char32_t’ was not declared in this scope >> u.c:5: error: expected ‘;’ before ‘c’ >> u.c:6: error: ‘u32string’ is not a member of ‘std’ >> u.c:6: error: expected ‘;’ before ‘u’ >> >> $ g++ -std=c++11 -o utest u.c >> cc1plus: error: unrecognized command line option "-std=c++11" > > Ok, so gcc 4.4 is not going to work. > > According to https://wiki.debian.org/LTS, squeeze has EOLed a year ago. > >> wheezy with gcc-4.7 >> >> $ g++ -o utest u.c >> u.c: In function ‘int main()’: >> u.c:5:4: error: ‘char32_t’ was not declared in this scope >> u.c:5:13: error: expected ‘;’ before ‘c’ >> u.c:6:4: error: ‘u32string’ is not a member of ‘std’ >> u.c:6:19: error: expected ‘;’ before ‘u’ >> >> $ g++ -std=c++11 -o utest u.c >> (no output) > > Ok, so with wheezy, and going forward, you should be ok by explicitly > using the -std=c++11 compiler flag. > > CentOS 5 also comes with gcc 4.4, and CentOS 5 EOLs and the end of this > month. But looks like CentOS 6 still uses gcc 4.4, until 2020. That's > likely to be problematic, but I'd still like to verify this. It's > remotely possible that Red Hat patched in some C++11 support in their > build of gcc 4.4.
You can try with -std=c++0x which enables limited support and has been available since early 4.x releases. Regards, Freddie. > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > > > _______________________________________________ > courier-users mailing list > courier-users@lists.sourceforge.net > Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users >
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users