bug-gmp
[Top][All Lists]
Advanced

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

problem with pasting two tokens together in gcc 3.4


From: Deepak Soi
Subject: problem with pasting two tokens together in gcc 3.4
Date: Wed, 18 May 2005 12:40:22 +0530
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

Hi, Yes, you are right problem we are facing is with pasting two tokens together, but what I am unable to understand is why its compiling properly with older gcc versions. Is there any change in gcc3.4 handling of macros.I will be thankful for your help on this.

======================================================================
Error

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.

=====================================================================

regards
Deepak Soi




Ian Lance Taylor wrote:

Deepak Soi <address@hidden> 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







reply via email to

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