make a variable global across all .cpp

How do we make a variable global across all .cpp files/modules of one (will-be) binary, which is to be compiled and linked by g++ in one line?
with a couple of extra lines you can make it a static class variable.
Topic archived. No new replies allowed.