Re: Why does GCC Preprocessor NOT support such macro?

2009-10-27 Thread Jakub Jelinek
On Fri, Oct 23, 2009 at 09:58:55PM +0800, Zhang Lin wrote: > Hello, > I have encountered an issue when building ACE with MinGW and GCC 4.4.1 > The following macro was not accepted by the preprocessor and it reported such > an error: "error: operator '==' has no left operand". > > #if !defined (AC

Re: Why does GCC Preprocessor NOT support such macro?

2009-10-23 Thread Andrew Pinski
On Fri, Oct 23, 2009 at 9:35 AM, Zhang Lin wrote: > Sorry, maybe my  representation is not quite clear. > I mean that I didn't define ACE_HAS_NONSTATIC_OBJECT_MANAGER at all, so the > preprocesser should not process "#elif (ACE_HAS_NONSTATIC_OBJECT_MANAGER == > 0)", the following simple cpp can

Re: Why does GCC Preprocessor NOT support such macro?

2009-10-23 Thread Jean Christophe Beyler
v[]) > { >  return 0; > } > == > > the compile command is: > gcc -Wall -o "Test.exe" "Test.cpp" -lstdc++ -s > > and the error message is: > Test.cpp:3:41: error: operator '==' has no left operand > > > - Original Message

Re: Why does GCC Preprocessor NOT support such macro?

2009-10-23 Thread Zhang Lin
command is: gcc -Wall -o "Test.exe" "Test.cpp" -lstdc++ -s and the error message is: Test.cpp:3:41: error: operator '==' has no left operand - Original Message - From: "John Graham" To: Sent: Friday, October 23, 2009 10:03 PM Subject: Re: Why does

Re: Why does GCC Preprocessor NOT support such macro?

2009-10-23 Thread John Graham
2009/10/23 Zhang Lin : > Hello, > I have encountered an issue when building ACE with MinGW and GCC 4.4.1 > The following macro was not accepted by the preprocessor and it reported such > an error: "error: operator '==' has no left operand". > > #if !defined (ACE_HAS_NONSTATIC_OBJECT_MANAGER) > # d

Why does GCC Preprocessor NOT support such macro?

2009-10-23 Thread Zhang Lin
Hello, I have encountered an issue when building ACE with MinGW and GCC 4.4.1 The following macro was not accepted by the preprocessor and it reported such an error: "error: operator '==' has no left operand". #if !defined (ACE_HAS_NONSTATIC_OBJECT_MANAGER) # define ACE_HAS_NONSTATIC_OBJECT_MANAG

Re: gcc preprocessor

2007-04-20 Thread Robert Dewar
drizzle drizzle wrote: Any developer sense on what it might take to extend the gcc preprocessor to do these ? I have some experience with gcc front end. I am especially keen abt multiline macros, so that the lines can be on separate lines. Any neat trick that can accomplish this by using #define

Re: gcc preprocessor

2007-04-20 Thread David Daney
drizzle drizzle wrote: Any developer sense on what it might take to extend the gcc preprocessor to do these ? I have some experience with gcc front end. I am especially keen abt multiline macros, so that the lines can be on separate lines. Any neat trick that can accomplish this by using #define

Re: gcc preprocessor

2007-04-20 Thread drizzle drizzle
Any developer sense on what it might take to extend the gcc preprocessor to do these ? I have some experience with gcc front end. I am especially keen abt multiline macros, so that the lines can be on separate lines. Any neat trick that can accomplish this by using #define ? dz On 4/20/07, Joe

Re: gcc preprocessor

2007-04-20 Thread Joe Buck
On Fri, Apr 20, 2007 at 01:27:48PM -0400, drizzle drizzle wrote: > Ok can you tell me what directives does it provide to do what I > have said . And I am not a beginner to gcc. The answer is that gcc provides what the C standard specifies and nothing more. You appear to want a more complica

RE: gcc preprocessor

2007-04-20 Thread Dave Korn
On 20 April 2007 18:28, drizzle drizzle wrote: > Ok can you tell me what directives does it provide to do what I > have said . And I am not a beginner to gcc. Then you should have RTFMd by now. cheers, DaveK -- Can't think of a witty .sigline today

Re: gcc preprocessor

2007-04-20 Thread drizzle drizzle
<[EMAIL PROTECTED]> wrote: On Wed, Apr 18, 2007 at 09:07:07PM -0400, drizzle drizzle wrote: > Can some one tell me if gcc preprocessor can support in some way > the following > features You are asking a beginner C programming question. gcc's preprocessor does what standard C preprocessors do.

Re: gcc preprocessor

2007-04-18 Thread Joe Buck
On Wed, Apr 18, 2007 at 09:07:07PM -0400, drizzle drizzle wrote: > Can some one tell me if gcc preprocessor can support in some way > the following > features You are asking a beginner C programming question. gcc's preprocessor does what standard C preprocessors do.

gcc preprocessor

2007-04-18 Thread drizzle drizzle
Hi Can some one tell me if gcc preprocessor can support in some way the following features 1. Repeating a block a certain number of times 2. Multiline macros with new lines 3. Setting a symbolic constant inside a #define thanks dz