This is the mail archive of the
mailing list for the GCC project.
`initializer element is not constant' issue
- To: gcc-help at gcc dot gnu dot org
- Subject: `initializer element is not constant' issue
- From: Gigi Sullivan <sullivan at sikurezza dot org>
- Date: Tue, 21 Aug 2001 23:23:07 +0200
I'd like to initialize global variables outside of
functions (as usual) in a slightly different manner;
let's consider the attached file, please.
Everything should be ok, but I get
`initializer element is not constant' error from the compiler.
Is there a way to work around this, please? 
bye bye && thanks!
-- gg sullivan
: I cannot/don't want to put these declaration inside some
Lorenzo Cavallaro `Gigi Sullivan' <email@example.com>
Until I loved, life had no beauty;
I did not know I lived until I had loved. (Theodor Korner)
void *func(char *, int, int);
#define DECLARE(name, type) \
caddr_t name = func(#name, strlen(#name), type);
func(char *s, int len, int type)