From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geoff Keating To: Byron Stanoszek Cc: gcc@gcc.gnu.org Subject: Re: warning: pasting would not give a valid preprocessing token Date: Fri, 11 Aug 2000 20:46:00 -0000 Message-id: References: X-SW-Source: 2000-08/msg00272.html Byron Stanoszek writes: > I've seen this warning in many of my .c files when compiling with versions of > 2.96 from mid-july and newer.. has anyone else seen this before, know what it > is, and how to fix it? > > warning: pasting would not give a valid preprocessing token It means you're writing something like #define paste(a, b) a##b paste(*,foo) because '*foo' is not a token, the tokens you want are '*' and 'foo'. The solution is to replace the ## with a space. -- - Geoffrey Keating