All of the interesting technological, artistic or just plain fun subjects I'd investigate if I had an infinite number of lifetimes. In other words, a dumping ground...

Monday 11 August 2008

g++ error: multiple declarations

I have this error with g++ version  3.4.6
yms.cc:1317: error: multiple declarations `NullWiException' and `e'

And it points to this line:
    } catch (NullWiException e) {
I fixed it by changing it to a reference:
    } catch (NullWiException &e) {

No comments:

tim's shared items

Add to Google Reader or Homepage