View Single Post
Old 13th January 2021, 17:10   #6  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by Jamaika View Post
So I wonder about my builds.
GCC 10 prefers gnu++14
GCC 11 prefers gnu++17
Is it compatible with gnu++11 and can gnu++11 libraries libjpeg/libpng/libtiff/libwebp/aom be compiled in gnu++17/21?
https://github.com/GrokImageCompression/grok
https://github.com/link-u/cavif
It is not unusual that the default for -std= changes between GCC major releases, but you can explicitly specify -std=gnu++14 in your CFLAGS, if you want the compiler to adhere to exactly that version

As far as source code is concerned, newer versions of the C++ standard (with or without GNU extensions) should be backward-compatible to older versions. Code written in C++14 (or even C++98) should compile with a C++17 compiler.

Binary compatibility is a different story. When it comes to C++, binaries compiled by different compiler versions (let alone different compilers) generally can not be mixed, because the C++ standard does not define an ABI.

Quote:
Rather, I meant the 2021 night versions
Another web-site offering "experimental" versions of MinGW/GCC (weekly snapshots) is here:
http://www.equation.com/servlet/equation.cmd?fa=fortran
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 13th January 2021 at 21:12.
LoRd_MuldeR is offline   Reply With Quote