F
Felix Kater
Hi,
I've got the header myheader.h:
#ifndef MY_HEADER
#define MY_HEADER
const int my_const_int = 99;
/* ... */
#endif
However, gcc says my_const_int was already defined were myheader.h is first included. If I define my_const_int without beeing a const or use #define, it works. What's the problem here?
Felix
I've got the header myheader.h:
#ifndef MY_HEADER
#define MY_HEADER
const int my_const_int = 99;
/* ... */
#endif
However, gcc says my_const_int was already defined were myheader.h is first included. If I define my_const_int without beeing a const or use #define, it works. What's the problem here?
Felix