Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

post-il2cpp direct compile with -std=c++>11 for Android

Discussion in '2022.1 Beta' started by Deleted User, Jan 24, 2022.

  1. Deleted User

    Deleted User

    Guest

    Folks, it is 2022, il2cpp works great and no option to compile fwith better than c++11 for Android?!!
    8-O
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,936
    Is there anything specific from later C++ standards that you need to use? At least for the IL2CPP generated code, there is no need to compile with a newer version of C++.
     
  3. Deleted User

    Deleted User

    Guest

    unique_ptr for ex
     
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,936
    Note that unique_ptr is part of C++11.

    However, if you have a C++ library you would like to use, it is probably better that you compile that yourself, then you can use any compiler flags that are necessary.