Jump to content
  • 0

[Solved] [Classic] anyone know how to fix these C++ errors ?


antz

Question

CreatureAIRegistry.cpp

\\server\\src\\game\\CreatureAIRegistry.h(25): error C3158: 'Initialize' : 'override' can only be applied to a virtual member function

\\server\\src\\game\\CreatureAIRegistry.h(25): error C2575: 'Initialize' : only member functions and bases can be virtual

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

where do you get this error? i've just compiled server source in VS2010 and everything was built with success.

EDIT: forget it, aftef i pulled some new commits compilation went smoothly

btw. there is an ugly error during compilation under linux:

server/src/shared/ByteBuffer.h: In member function 'void ByteBufferException::PrintPosError() const':

server/src/shared/ByteBuffer.h:38: error: 'ACE_Stack_Trace' was not declared in this scope

Link to comment
Share on other sites

CreatureAIRegistry.cpp

\\server\\src\\game\\CreatureAIRegistry.h(25): error C3158: 'Initialize' : 'override' can only be applied to a virtual member function

\\server\\src\\game\\CreatureAIRegistry.h(25): error C2575: 'Initialize' : only member functions and bases can be virtual

This is VS2012 Net 4.5 Error use VS2010 + Service pack 1

Link to comment
Share on other sites

btw.... I came across this.... which could be useful to fix specific VS2012 issues...

#if COMPILER == COMPILER_MICROSOFT && _MSC_VER >= 1700 // VS110

check this

tbb_config.h

    
-#define __TBB_EXCEPTION_PTR_PRESENT  (_MSC_VER >= 1600 || __GXX_EXPERIMENTAL_CXX0X__ && (__GNUC__==4 && __GNUC_MINOR__>=4))

+#define __TBB_EXCEPTION_PTR_PRESENT  (_MSC_VER >= 1700 || __GXX_EXPERIMENTAL_CXX0X__ && (__GNUC__==5 && __GNUC_MINOR__>=5))

and

tbb_exception.h

-    tbb_exception_ptr ( const captured_exception& src ) : my_ptr(std::copy_exception(src)) {}

+    tbb_exception_ptr ( const captured_exception& src ) : my_ptr(make_exception_ptr(src)) {}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use