Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Error compiling R23 framework

    Cinema 4D SDK
    r23 c++
    2
    2
    495
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dgould
      last edited by

      I've downloaded the latest R23 SDK from here: https://developers.maxon.net/downloads/Cinema_4D_CPP_SDK_23_107.zip
      I then ran the Project Tool to generate the project files.
      When I compile the math.framework project in VS I get the following error:

      2>kdtree.cpp
      2>C:\Temp\sdk_check\frameworks\core.framework\source\maxon\utilities\resultbase.h(571,4): error C2079: 'maxon::ResultBase<RESULT_TYPE>::_value' uses undefined class 'maxon::BlendAnimationRef'
      2>        with
      2>        [
      2>            RESULT_TYPE=maxon::BlendAnimationRef
      2>        ] (compiling source file ..\source\maxon\blend_animation.cpp)
      2>C:\Temp\sdk_check\frameworks\core.framework\source\maxon\utilities\resultbase.h(760): message : see reference to class template instantiation 'maxon::ResultBase<RESULT_TYPE>' being compiled
      2>        with
      2>        [
      2>            RESULT_TYPE=maxon::BlendAnimationRef
      2>        ] (compiling source file ..\source\maxon\blend_animation.cpp)
      2>C:\Temp\sdk_check\frameworks\core.framework\source\maxon\objectbase.h(1287): message : see reference to class template instantiation 'maxon::Result<maxon::BlendAnimationRef>' being compiled (compiling source file ..\source\maxon\blend_animation.cpp)
      2>C:\Temp\sdk_check\frameworks\core.framework\source\maxon\utilities\resultbase.h(571,4): error C2079: 'maxon::ResultBase<RESULT_TYPE>::_value' uses undefined class 'maxon::BlendAnimationRef'
      2>        with
      2>        [
      2>            RESULT_TYPE=maxon::BlendAnimationRef
      2>        ] (compiling source file ..\generated\hxx\register.cpp)
      2>C:\Temp\sdk_check\frameworks\core.framework\source\maxon\utilities\resultbase.h(760): message : see reference to class template instantiation 'maxon::ResultBase<RESULT_TYPE>' being compiled
      2>        with
      2>        [
      2>            RESULT_TYPE=maxon::BlendAnimationRef
      2>        ] (compiling source file ..\generated\hxx\register.cpp)
      2>C:\Temp\sdk_check\frameworks\core.framework\source\maxon\objectbase.h(1287): message : see reference to class template instantiation 'maxon::Result<maxon::BlendAnimationRef>' being compiled (compiling source file ..\generated\hxx\register.cpp)
      
      

      As per this post I understood that this issue was resolved: https://developers.maxon.net/forum/topic/13244/build-fails-with-r23-sdk/3
      However it seems not.
      Thanks.

      i_mazlovI 1 Reply Last reply Reply Quote 0
      • i_mazlovI
        i_mazlov @dgould
        last edited by i_mazlov

        Hi @dgould,
        Welcome to the Maxon developers forum and its community, it is great to have you with us!

        Getting Started

        Before creating your next postings, we would recommend making yourself accustomed with our forum and support procedures. You did not do anything wrong, we point all new users to these rules.

        • Forum Overview: Provides a broad overview of the fundamental structure and rules of this forum, such as the purpose of the different sub-forums or the fact that we will ban users who engage in hate speech or harassment.
        • Support Procedures: Provides a more in detail overview of how we provide technical support for APIs here. This topic will tell you how to ask good questions and limits of our technical support.
        • Forum Features: Provides an overview of the technical features of this forum, such as Markdown markup or file uploads.

        It is strongly recommended to read the first two topics carefully, especially the section Support Procedures: Asking Questions.

        About your First Question

        You are completely right with finding the thread with the answer: Manuel posted in a separate thread the solution for this issue: Building R23 SDK with Visual Studio 16.9.

        As he states there inside the R23.107 sdk you need to find the file frameworks/core.framework/source/maxon/objectbase.h and make there two changes. This will allow your solution to build without errors.

        The issue was later resolved in S24 and onwards, so there's no need in changing this file there.

        Cheers,
        Ilia

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 0
        • First post
          Last post