just a sidenote: don't you place interface stuff into header files? so move the variable declaration into your code file and a function prototype into your header file.