Search Issue Tracker
Active
Under Consideration for 2021.3.X, 2022.3.X
Votes
0
Found in
2021.3.38f1
2022.3.27f1
6000.0.0f1
Issue ID
UUM-71796
Regression
No
The "--additional-libraries" argument is ignored when building projects with the IL2CPP scripting backend
How to reproduce:
1. Open the attached “IL2CPP_additional_libraries_issue“ project
2. Open the “ProjectSettings.asset” file (IL2CPP_additional_libraries_issue\ProjectSettings\ProjectSettings.asset)
3. Navigate to line 646 (additionalIl2CppArgs) and enter the path of the project after the “--additional-libraries” argument
4. Save and close the “ProjectSettings.asset” file
5. Build the project (File → Build Settings → Build)
6. Observe the Console window
Expected result: The build succeeds
Actual result: The build fails and shows “error LNK2019: unresolved external symbol StaticLibFunc referenced in function” and “fatal error LNK1120: 1 unresolved externals” in the Console
Reproducible in: 2021.3.38f1, 2022.3.27f1, 6000.0.0f1
Reproducible on: Windows 10, Windows 11
Not reproducible on: No other environments tested
Workaround: It is possible to link additional libraries via “PlayerSettings.SetAdditionalIl2CppArgs” by using the “--linker-flags” argument
Note: Not reproducible when using Mono scripting backend
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android][Vulkan] Crash on /system/lib/libandroid.so (ANativeWindow_setBuffersGeometry+4) when the Vulkan Graphics API is used
- Event handlers are preventing operations when trying to copy or paste HTML text in the WebGL Player
- [macOS] Crash on __pthread_kill when Exporting a Package while another export is in progress
- Crash on TransformAccessDestroyCallback when removing a URP Decal Projector component from a parent GameObject that had a URP Decal Projector child GameObject
- [ShaderGraph][URP Sample] Shader error in 'Shader Graphs/Screen_Graph': 'SHADERGRAPH_BAKED_GI'
Add comment