Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
It's funny.  Laugh.

Journal Jtoxification's Journal: Venting g++ library file screwup WTF ?!!!!

I got the following error in compiling some of my code, today ...

/home/scully/cs453/redo/lex.yy.cc:640: multiple definition of `i'
/tmp/ccDQ3NXY.o:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include/g++-v3/bits/sstream.tcc:104: first defined here

SOMEONE DEFINED the VARIABLE "i" GLOBALLY in a LIBRARY FILE! WHO'S CHECKING THIS SHIT?!

Bah. I'll just make it local. /End Rant.


But still, for shame. Bad programming style - that variable name's too heavily-used to be globally-declared in a system file ... and it's not static, namespaced, prefixed, or suffixed. That's pretty awful.

- My god, I've become way too obsessive-compulsive with my programming...

This discussion has been archived. No new comments can be posted.

Venting g++ library file screwup WTF ?!!!!

Comments Filter:

It's a naive, domestic operating system without any breeding, but I think you'll be amused by its presumption.

Working...