Search Unity

Bug fatal error C1083: Cannot open include file: 'string.h'

Discussion in 'Scripting' started by KarlKarl2000, Jul 9, 2022.

  1. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    606
    UPDATE
    For anyone else that finds this. The fix for me was completely uninstalling the Windows SDK and reinstalling.
    upload_2022-7-9_14-58-24.png
    UPDATE ED


    Hi Unity team
    • Unity 2021.1.28f1
    • Microsoft Visual Studio Community 2017
    • Version 15.9.49
    • VisualStudio.15.Release/15.9.49+28307.2019

    I tried to build my game via il2cpp and got this red error.

    I have string.h , not sure what's wrong.
    upload_2022-7-9_13-45-11.png


    Thanks for the help

    Code (CSharp):
    1. Unity.IL2CPP.Building.BuilderFailedException: pch-c.c
    2. C:\Program Files\Unity 2021.1.28f1\Editor\Data\il2cpp\libil2cpp\il2cpp-config.h(3): fatal error C1083: Cannot open include file: 'string.h': No such file or directory
    3.  
     
    Last edited: Jul 10, 2022
    Timminator19 likes this.