This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: prob in compilation with gcc3.4
- From: Ian Lance Taylor <ian at airs dot com>
- To: sdeepak at cadence dot com
- Cc: gcc-help at gcc dot gnu dot org
- Date: 18 May 2005 00:22:25 -0400
- Subject: Re: prob in compilation with gcc3.4
- References: <428AC1D8.4030209@cadence.com>
Deepak Soi <sdeepak@cadence.com> writes:
> I am getting a compilation error with gcc3.4. Is there some
> special handling of macros in gcc3.4 as all these lines are calling
> macros . It will be really nice if somebody helps out, I am struck.
> ==============================================================
> find.cxx:723:1: pasting "DbNet" and "*" does not give a valid
> preprocessing token.
> find.cxx:723:1: pasting "Net" and "*" does not give a valid
> preprocessing token.
> find.cxx:723:1: pasting "FindFromDbNet" and "(" does not give a
> valid preprocessing token.
> ==================================================================
Sounds like invalid use of ##, which is used to paste two tokens
together into a single token. The problem is going to be somewhere
inside your macro definitions. Perhaps you are simply using an
inappropriate argument to your macro. It's impossible to say much
more without an example.
Ian