the3dfxdude / 7kaa

Seven Kingdoms: Ancient Adversaries - Go to the main source repository at https://sourceforge.net/projects/skfans/ for source code and builds
https://7kfans.com
Other
253 stars 71 forks source link

Can not compile with Clang 16 - incompatibility with c++17 standard #270

Closed Pinkbyte closed 1 year ago

Pinkbyte commented 1 year ago

Error during compilation: OMISC.cpp:611:4: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register int a,b;

Suggested fix: https://raw.githubusercontent.com/gentoo/gentoo/438973c52e3f7342c5a06cc03dd97de720296bdf/games-strategy/seven-kingdoms/files/seven-kingdoms-2.15.5-c%2B%2B17.patch

the3dfxdude commented 1 year ago

Yes, we'll deal with it since the standard is now being enforced. However, we do not support clang in this project. You should use gcc for any package you ship.