Dwarf Exception Unwind Info
Archive - Originally posted on "The Horse's Mouth" - 2012-07-20 20:35:29 - Graham EllisI spent quite a while with one of the delegates on our C and C++ course yesterday looking for the cause of compile / load errors including the text:
Dwarf Exception Unwind Info
The whole thing was very bizarre - from a perfect compile just a minute of two earlier, and with minimal source code changes, the whole thing had gone wild:
munchkin:cj12 grahamellis$ gcc -o flow2 flow2.cpp
Undefined symbols for architecture x86_64:
"std::ios_base::Init::Init()", referenced from:
__static_initialization_and_destruction_0(int, int)in cc23QGz4.o
"std::ios_base::Init::~Init()", referenced from:
___tcf_0 in cc23QGz4.o
etc
culminating in that dwarf exception message.
Alas - solution turns out to be absurdly simple. I had called up the C compiler rather than the C++ compiler ... but given it C++ code. Change from gcc to g++ and it works perfectly:
munchkin:cj12 grahamellis$ g++ -o flow2 flow2.cpp
munchkin:cj12 grahamellis