glynn@info.ucl.ac.be (Kevin Glynn) writes:
> aldebaran!glynn [13] gcc -c tmp.c
> tmp.c: In function `check':
> tmp.c:13: warning: ISO C forbids taking the address of a label
> tmp.c:14: warning: ISO C forbids taking the address of a label
> tmp.c:16: warning: ISO C forbids `goto *expr;'
> tmp.c:18: error: `asm' undeclared (first use in this function)
> tmp.c:18: error: (Each undeclared identifier is reported only once
> tmp.c:18: error: for each function it appears in.)
> tmp.c:18: error: parse error before "volatile"
It seems that this version of gcc was configured to use -ansi by
default: this turns off support for gcc extensions. Try compiling
with:
gcc -std=gnu89 -c tmp.c
and let me know what happens.
Cheers,
PS: what does "gcc -v" print out?
-- Denys Duchier - Équipe Calligramme - LORIA, Nancy, France - Please send submissions to hackers@mozart-oz.org and administriva mail to hackers-request@mozart-oz.org. The Mozart Oz web site is at http://www.mozart-oz.org/.