Error when using .include directive in Gnu Assembler!
Nick Clifton
nickc@redhat.com
Tue Mar 20 20:06:00 GMT 2001
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
More information about the Binutils
mailing list