Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

IL2CPP cannot find my managed dll

Discussion in 'Editor & General Support' started by Guedez, Jan 20, 2020.

  1. Guedez

    Guedez

    Joined:
    Jun 1, 2012
    Posts:
    827
    I've compiled a huge generated code class into a DLL, everything that used such class keeps working, except when I build with IL2CPP. It throws tons of
    485479EBD42C96C53B48C971C9930EE0.obj : error LNK2001: unresolved external symbol QuickSystemFilter3EntityShared_5_OnCreateForCompiler_m3BE711B5A43269085FE5002C39D9EED26EC73180_gshared
    and the like.
    QuickSystemFilter3EntityShared probably refers to:
    Code (CSharp):
    1. public abstract class QuickSystemFilter3EntityShared<F1, F2, F3, S> : QuickSystemBase where S : struct, ISharedComponentData {
    2.     protected override void OnCreate() {
    3.         m_MainGroup = GetEntityQuery(typeof(F1), typeof(F2), typeof(F3), typeof(S));
    4.     }
    5.     protected override void OnUpdate() {
    6.         Entities.With(m_MainGroup).ForEach((Entity e, S s) => {
    7.             OnUpdate(e, s);
    8.         });
    9.     }
    10.     protected abstract void OnUpdate(Entity e, S s);
    11. }
    which is one of the many classes on the DLL, which are used all over my code. Since it's managed dll, I never bother doing any DllImport, could this be the issue?
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    This looks like a problem on the IL2CPP, side, not with your code. Can you submit a bug report and include this project?
     
  3. Guedez

    Guedez

    Joined:
    Jun 1, 2012
    Posts:
    827
    sent as a bug report with the project