[Dev-C++] Global variables (linking errors)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel G. <sp...@ho...> - 2002-04-18 16:14:06
|
Help me out here would you? I have three C++ source files, each with its own header file. I want to have a global variable that all three source files can use. But when I put the variable into one of the header files I get Linker Errors, telling me the variable has already been defined in the first of my source code files. I think it's to do with the header files, but I'm not sure. Can anyone help? Daniel _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com |