I am trying to compile a program with two source files and a header file. A.cpp and B.cpp both include A.h which has my variables and function prototypes. However when I compile, I get variables undefined messages. What is the proper way of doing this? Thanx