Navigation

    • Register
    • Login
    • Search
    1. Home
    2. megamau
    M

    megamau

    @megamau

    0
    Reputation
    2
    Posts
    6
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    megamau Follow

    Best posts made by megamau

    This user does not have any upvoted posts yet.

    Latest posts made by megamau

    RE: Support for C++20

    Thanks for the reply.

    No problem if it's not backwards compatible. We will adapt our code to the latest version of the SDK.
    Thank you.

    posted in Cineware SDK •
    Support for C++20

    Hello guys,

    We use the Cineware SDK in our projects for a long time (way back from when it was still called Melange). Now the projects had evolved and we needed to update the compiler and STL to include some new features. Cineware SDK is preventing us from doing so because it's not compatible with the new c++20 nomenclature.

    Is there a way to fix this sooner than later?
    Here are some of the error being output by the compiler:

    \include\private_ge_mtools.h(633,4): error C2065: 'objectToDelete': undeclared identifier
    \include\private_ge_mtools.h(687): message : see reference to class template instantiation 'cineware::GeTempDynArray<TYPE>' being compiled
    \include\private_ge_mtools.h(633,4): error C3861: 'objectToDelete': identifier not found
    \include\private_ge_mtools.h(674,4): error C2065: 'objectToDelete': undeclared identifier
    \include\private_ge_mtools.h(674,4): error C3861: 'objectToDelete': identifier not found
    \include\private_ge_mtools.h(750,4): error C2065: 'objectToDelete': undeclared identifier
    \include\private_ge_mtools.h(754): message : see reference to class template instantiation 'cineware::GeTempDynStack<TYPE>' being compiledAdded new preview/snapshot window;
    \include\private_ge_mtools.h(750,4): error C3861: 'objectToDelete': identifier not foundLong object names are now clipped and faded in the scene window;
    \include\private_ge_mtools.h(936,4): error C2065: 'objectToDelete': undeclared identifierFixed "Reload Texture" not refreshing the preview;
    \include\private_ge_mtools.h(990): message : see reference to class template instantiation 'cineware::GeTempDynSortSearchArray<TYPE,SEARCH,FLUSH>' being compiledFixed text overlap in the edit window (map channel filename);
    \include\private_ge_mtools.h(936,4): error C3861: 'objectToDelete': identifier not found
    \include\private_ge_mtools.h(3122,14): error C2065: 'm_Allocated': undeclared identifier
    \include\private_ge_mtools.h(3337): message : see reference to class template instantiation 'cineware::SortedArray<TYPE,BLOCK>' being compiled
    

    This is for calling the following define in c4d_system.h

    #define DeleteObj(obj) \
    	do { \
    		ALLOC_TYPENAME ::std::remove_reference<decltype(obj)>::type* objectToDelete = &(obj); \
    		if (*objectToDelete) { \
    			typedef ALLOC_TYPENAME ::std::remove_pointer<ALLOC_TYPENAME ::std::remove_pointer<decltype(objectToDelete)>::type>::type CtorType; \
    			((CtorType*) (*objectToDelete))->~CtorType(); \
    			void* tmpToDelete = *objectToDelete; \
    			cineware::MemFree(tmpToDelete); \
    			*objectToDelete = nullptr; \
    		} \
    	} while (false)	// While ensures the user has to set a semicolon after DeleteObj
    

    Thank you.

    posted in Cineware SDK •