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

[993 byte] By [VishnuVardhana] at [2007-11-26 23:36:10]
# 1
It sounds like you are using Microsoft Visual C++. Although general C++ questions are OK in this forum, questions about using compilers other than Sun C++ belong in some other forum. For Microsoft C++, try a Microsoft forum.
clamage45a at 2007-7-11 14:58:30 > top of Java-index,Development Tools,Solaris and Linux Development Tools...