GCC versions 4.7.0 and 4.7.1 had changes to the C++ standard library which affected the ABI in C++11 mode: a data member was added to std::list changing its size and altering the definitions of some member functions, and std::pair’s move constructor was non-trivial which altered the calling convention for functions with std::pair arguments or return types. The ABI incompatibilities have been fixed for GCC version 4.7.2 but as a result C++11 code compiled with GCC 4.7.0 or 4.7.1 may be incompatible with C++11 code compiled with different GCC versions and with C++98/C++03 code compiled with any version.
What we observe basically is that a library compiled with pre-4.7 gcc won’t be usable with a post-4.7 gcc. At least, that’s the case with libtcod, even if it doesn’t use any C++11 or libstdc++ feature.
That’s why the pre-built libraries don’t work with the beta Mingw or with the latest stable Code::Blocks (12.11). They both use a post 4.7 gcc.
What solutions do we have ?
stop statically linking with libstdc++ (not even sure it would work, and that means you would have to provide libstdc++ with your game, which kind of sucks)
stop providing pre-built libraries and let everybody compile it with the right compiler (I’m fine with that but you might not be especially if you’re a python developer!)
force everybody to switch to libtcod 1.5.2 and use a post-4.7 gcc (nightly builds won’t work anymore because they are cross-compiled on a linux box with gcc 4.4.5)
provide a gcc 4.6 and gcc 4.7 version of the library (still no nightly build for the 4.7 version)
All those solutions suck one way or another and I’m really starting to leer at some sexier ways to get a dependency-free native binary.
It’s a great roguelike library in javascript providing pretty much everything you can find in libtcod (at least everything that is really used) plus some bonuses like hex grid support.
It’s been used by several successful roguelikes this year so it’s pretty stable and complete.
Enjoy !
Ok I’m really the last one to hear about it, am I not ?
154 successes so far… more than twice more than in 2012.
40 roguetemplars to cope with the huge task of reviewing everything…
Here is the list of successes…
3
86856527
Rogue in the void
___ rogue the space rogue
10bar Roguelike
88 Pages
A DAY @ THE ZOO
A False Saint, An Honest Rogue
Ad Astra Per Aspera
Adventure Mall
Akamar
Alchemy
AlexandriaRL
Alternate Dimension Rogue Like
Anarchial
Angry Troll versus Magic Bridge
Appeasing the God
Arcology Escape
AscentRL
Attack The Geth
Awesome Rogue
Back up
Black Mage Goes Rogue
Borstal
BRS-081
Bughack
Bump!
Caverns of Shrug
Chest Quest
Chicken and Thyme
Cogs of Cronus
ColdRL
Comrade Pixel
Cosplay Mystery Dungeon
Cutpurse Castle
De Sade’s Dungeon
Dead Man Walking
Delusions of Grandeur
Depths of Tuzua
Desktop zombie survivor
Disc RL
Distant Echoes of Ancient Lies
DiveDive
Double Rogue
Down The Brain
Dragon’s Lair
Dragons Hoard
Dungeon Penetrator
Dungeon X: Flesh Wounds
Dungeon-Themed Starvation Simulator
Dying Embers
Elite RL
Eternal Cave
EXCELent Rogue
fabu
Faith in RL
Farm rl
FHRL
Firestorm City
Fishtryoshka
Fisticuffsmanship
FlatlineRL
Fleeing the Fray
Friendly Meddling
FunhouseRL
Gelatinous
Han Yolo and the Mysterious Planet
Hoplite
hproguelike
HumFallRL
Hunted
Hush Little One
Infection
Inside Out
Interloper
It Did Not End Well
Kali’s Ladder
Khu-Phu-Ka
KlingonRL
Kukulima
Liberation of Yarna
Like a Rogue
Live as Long as Possible
Lurk Under Wires
MacRL
Magic Fountain
Malachite Dreams
Mazmorra
MGRL
MidsomerRL
MLP_RL
mmoRL
Mosaic
MythosRL
Nightmare Tyrant
NinjaRL
Now Hiring: Zookeepers
Nya Quest
Nyanko
Peli
Possession
Prehistorical Bean Climber
Pugnacious Wizards
PurpRL
Quadropus Rampage
Random Chance
Rasatala
Rillaung
Rodney
Rogue Break
Rogue City Scavanger
Rogue Coder
Rogue Dream
Rogue Fleet
Rogue Valley
Rogue’s Eye
Rogue’s Labyrinth
Rogue3D
Room Rogue
RuneMaster
SanitasRL
segfault
seven-days-in-space
ShadowsOfHumanityRL
Skool Eskape
SkullDorado
Slaughter
Smashing Bad
So Many Jagged Shards
splitter
Starship Rex
Sunk Coast
SurvivorRL
Swift Swurd
T.H.A.D. – 7DRL edition
T@XI
Tetrogue
The Artifact
The Aurora Wager
The Case of the Girl and the Red Dress
The Conception
The Fourth Wall
The Monastery Garden
The Power of Dreams
The Reset Button
Tower of Despair
TriQuest
Unhappy Devil
Unholy Conglomerate
Uushuvud
Versus Time
Warp Core Breach
Weeping Angels
ZomgRL