Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Build - IL2CPP lnk2019 errors - Please, how fix it?

Discussion in 'Windows' started by fnc176, Nov 23, 2023.

  1. fnc176

    fnc176

    Joined:
    Sep 26, 2023
    Posts:
    3
    There was no problem in mono. However, it happened when I built it after converting to il2cpp.
    When I build, you get this error at the end.


    ##### Custom Environment Variables
    PATH=C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64;C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64
    _MSPDBSRV_ENDPOINT_=2524425291397743274
    ##### ExitCode
    1120
    ##### Output
    Creating library Library/Bee/artifacts/WinPlayerBuildProgram/u1oik/GameAssembly.dll.lib and object Library/Bee/artifacts/WinPlayerBuildProgram/u1oik/GameAssembly.dll.exp

    4t9q_ta.SQLite1.obj : error LNK2019: unresolved external symbol dlopen referenced in function unameUnsafeNativeMethodsPosix_GetOsVersionInfo_mCA9C26DF2DEE74426614D59EC099EBD324B719D4

    4t9q_ta.SQLite1.obj : error LNK2019: unresolved external symbol dlopen referenced in function dlopenNativeLibraryHelper_LoadLibraryPosix_m4763A9631B71705FFCF6939F373354C1436291A2

    Library\Bee\artifacts\WinPlayerBuildProgram\u1oik\GameAssembly.dll : fatal error LNK1120: 2 unresolved externals


    I saw an article to find a class called UnsafeNativeMethodsPosix But this is not in the project and is defined under the built folder I am currently spending about two weeks on this issue It's too hard. Please help me
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,745
    Looks like that class is inside SQLite1.dll (or named something similarly). It is somewhere inside your project.