[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] What does "error: expected expression before '/' toke

From: Joerg Wunsch
Subject: Re: [avr-gcc-list] What does "error: expected expression before '/' token" really mean?
Date: Wed, 10 Sep 2014 09:05:42 +0200 (CEST)

Bob Paddock <address@hidden> wrote:

> "error: expected expression before '/' token"

You could try running only the preprocessing step (-E), and have
a look at the output.


Quote these, like:


The "+" and "*" characters are special to the shell.  They are
so-called globbing characters, and the shell replaces them by
matching filenames *before* executing the (avr-gcc) command.


Btw., the latter can be derived from the former, through the
"stringify" operator "#".

Supposed a file foo.c like:

#define STR_(x) #x
#define STR(x) STR_(x)


Then calling avr-gcc -E -DNEW_BUILDNUMBER=42 foo.c yields:

# 1 "foo.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "foo.c"


cheers, Joerg               .-.-.   --... ...--   -.. .  DL8DTL

Never trust an operating system you don't have sources for. ;-)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]