Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2019.4.X, 2020.3.X
Duplicate in 2021.2.X, 2022.1.X
Votes
0
Found in
Issue ID
1287868
Regression
No
Poor error message from IL2CPP on Windows Desktop with specific Visual Studio installation sequence
I'm submitting this bug report on behalf of a user who posted about it on the forum here: https://forum.unity.com/threads/il2cpp-build-problem.994606/#post-6458698
I've not reproduced it locally, but it seems these are the Visual Studio installation steps, as described by the user:
* had VS2017, uninstalled it
* installed VS2019
* added some .NET versions
* added Unity Hub
Then when the user builds an IL2CPP player, they get a rather cryptic error message from the Microsoft C++ compiler:
Cannot open include file: 'string.h': No such file or directory
Likely, the issue is that the C++ workload for Visual Studio is not installed. However, Unity or IL2CPP should be able to detect this case and provide a better error message.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2020.3):
Fixed in 2020.3.31f1.
Resolution Note (fix version 2019.4):
Fixed in: 2019.4.38f1