From: "Alexandre Devaure" Newsgroups: comp.os.msdos.djgpp Subject: use of .equ in as Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Message-ID: Date: Mon, 15 May 2000 10:06:04 GMT NNTP-Posting-Host: 194.51.236.59 X-Complaints-To: abuse AT proxad DOT net X-Trace: nnrp6.proxad.net 958385164 194.51.236.59 (Mon, 15 May 2000 12:06:04 CEST) NNTP-Posting-Date: Mon, 15 May 2000 12:06:04 CEST Organization: Guest of ProXad - France To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, I want to use .equ directive but I use it badly. Can you help me ? void main() { asm(".equ HELLO, $2\n\t" "movb HELLO,%ah"); } bash-2.03$ gcc -g asm.c asm.c: In function `main': asm.c:12: warning: return type of `main' is not `int' /tmp/ccsR72r4.o: In function `main': /home/devaure/tst/asm.c:13: undefined reference to `$2' collect2: ld returned 1 exit status Why does it think $2 is a ref and not a number? Alex