This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Error when using .include directive in Gnu Assembler!
- To: "Cliff Tsai" <clifftsai at minecard dot com dot tw>
- Subject: Re: Error when using .include directive in Gnu Assembler!
- From: Nick Clifton <nickc at redhat dot com>
- Date: 20 Mar 2001 20:06:01 -0800
- Cc: <binutils at sources dot redhat dot com>
- References: <001201c0b1b9$c4bd99c0$b200a8c0@minecard.com.tw>
Hi Cliff,
> I've try to use following codes in assembly.
> abc.h:
> #define a 0x1
> #define b 0x2
> #define c 0x3
>
> test.s:
>
> #include "abc.h"
Try calling your assembler source file 'test.S', ie with a capital S
as the extension. GCC passes .S files through the C preprocessor
first, but it passes .s files directly to the assembler and the
assembler ignores (most) lines starting with a hash.
Cheers
Nick