[gccsdk] Expanding Macros

Peter Naulls peter at chocky.org
Sun May 20 06:57:22 PDT 2007

In message <e04adfe54e.admin at snowstone.org.uk>
          Adam <lists at snowstone.org.uk> wrote:

> Sorry, to drag up this old thread, but I've subsequently discovered what
> the problem was here.
> GCC doesn't seem to like compiling files which don't have a .c suffix
> - it generates the "linker input unused" error. Is this unexpected
> behaviour and if so could the error be more informative?

For preprocessed files, you need to use the .i suffix (.ii for C++).
Alternatively, use the -x option, for force the input type.

Peter Naulls - peter at chocky.org        | http://www.chocky.org/
RISC OS Community Wiki - add your own content   | http://www.riscos.info/

More information about the gcc mailing list