From: Alan W. <arw...@wo...> - 2002-12-06 23:29:39
|
re: You need to put that call in a function. I'm a little dense on the gcc macro substitution thing and what it is looking = for with that cryptic error message.. Can you elaborate? so the open("/dev/port",O_RDWR); should be in a function like: int f_io { open("/dev/port",O_RDWR); } On Fri, Dec 06, 2002 at 02:04:54PM -0800, Alan Womack wrote: > f_io =3D open("/dev/port",O_RDWR); >=20 > that line gets me: >=20 > root@webby:alan# gcc -o pge2 pge2.c -O2 > pge2.c:32: initializer element is not constant > pge2.c:32: warning: data definition has no type or storage class >=20 > the whole hacked up source is attached: |