Re: [Dev-C++] Where to include files
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2003-10-13 21:38:03
|
One note. Since globally declared static variables are only accessible in a single compilation unit, they are normally not declared in any include file. If they are declared in an include file, every C or C++ file that included the file would get it's own copy of a static variable. /Per W On Sun, 12 Oct 2003, xRxIxPx wrote: > In general, you should only have const, static and extern variable > declarations in your header files, and in ONE .cpp file the definition for > your extern variables. > |