Variable in header

Hi, i'm a little bit confused about variable in header files, for example i writing a library call libra.cpp and libra.h, i know i have to make a pre-declaration of the funtions in libra.h and definition of functions in libra.cpp , but what about variables?, Is it the same for variables? what is the best way?

Variables in the header file but its good practice to avoid global variables.
Topic archived. No new replies allowed.