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: Why does GCC Preprocessor NOT support such macro?

2009-10-23 Thread Zhang Lin
GCC Preprocessor NOT support such macro? > 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: ope

A forward declaration used by template class issue on gcc 4.4.1

2009-10-23 Thread Zhang Lin
Hello, I have encountered an issue when building ACE with MinGW and GCC 4.4.1. The following example can reproduce the issue: == main.cpp == class ACE_Message_Queue_NT; template class ACE_Message_Queue_Factory { public: static ACE_Message_Queue_NT *create_NT_message_queue (int max