Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

IL2CPP_RAISE_MANAGED_EXCEPTION undeclared identifier

Discussion in 'iOS and tvOS' started by abryden, Jan 27, 2016.

  1. abryden

    abryden

    Joined:
    Sep 29, 2014
    Posts:
    24
    When I try to build and run an empty project with 5.3.1p4 I get many instances of the following error:

    <my path>/test/Classes/Native/Bulk_Generics_3.cpp:790:3: Use of undeclared identifier 'IL2CPP_RAISE_MANAGED_EXCEPTION'

    Does anyone have any thoughts?
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,778
    @abryden

    This macro should be in the il2cpp-codegen.h file, which should be in your Unity installation directory. If you don't see the IL2CPP_RAISE_MANAGED_EXCEPTION macro in that file, then I suspect you have a mismatch between the editor version (which is used to generated the C++ code) and the runtime support for the iOS player (where the il2cpp-codegen.h file lives).
     
  3. abryden

    abryden

    Joined:
    Sep 29, 2014
    Posts:
    24
    This is correct for anyone running into this problem. What you need to do is reinstall the version of unity you are using and make sure you check the appropriate platform - It will leave the old platform in place and cause errors.