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