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
- [URP][XR] Spotlight shadows flicker when Deffered Rendering Path is selected and rotating the HDM view in XR
- Scene view audio toggle doesn't work after disabling and enabling audio source component with audio random container
- Pitch changes while paused messes up scheduling of the audio random container
- Crash on detail::ComputeShaderSnippetKey when entering the Play mode
- Unable to interact with Material Inspector window when creating a new Material and renaming it
Add comment