Getting Redifinition error while compile ACE 5.5.
Hi,
I am trying to compile ACE 5.5 in C++.NET but it is giving following error. plz help me how to solve this error.
c:\ACE_wrappers\ace\Global_Macros.h(56): error C2086: 'int ACE_BEGIN_VERSIONED_NAMESPACE_DECL' : redefinition
..\ace\Assert.h(23) : see declaration of 'ACE_BEGIN_VERSIONED_NAMESPACE_DECL'
Error i am getting for following CODE:
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Export ACE_No_Heap_Check
{
public:
ACE_No_Heap_Check (void)
: old_state (_CrtSetDbgFlag (_CRTDBG_REPORT_FLAG))
{ _CrtSetDbgFlag (old_state & ~_CRTDBG_ALLOC_MEM_DF);}
~ACE_No_Heap_Check (void) { _CrtSetDbgFlag (old_state);}
private:
int old_state;
};
ACE_END_VERSIONED_NAMESPACE_DECL
Actually this "ACE_BEGIN_VERSIONED_NAMESPACE_DECL" is decleared some were in a file but i don't know how to find the declaration also. Plz help me.
Message was edited by:
VishnuVardhan

