commandcenter icon indicating copy to clipboard operation
commandcenter copied to clipboard

"corecrt.h" not found?

Open mecharos opened this issue 7 years ago • 3 comments

I was trying my hand at creating AI for the first time. after following the guide for a while, when I was trying to build the solution like the guide was said. instead, it gives me a bunch of error saying

Cannot open include file: 'corecrt.h': No such file or directory(compiling source file ..\src*.cpp)

the asterisk means the name of some files in the project. I'm using the precompiled library, since compiling myself seems bleak. It keeps giving me something about submodules and errors. Does anyone have a suggestion for what I may have done wrong?

mecharos avatar May 21 '18 12:05 mecharos

I never had this problem but I read about it here. Hopefully it helps.

Archiatrus avatar May 21 '18 14:05 Archiatrus

Thank you for the link and the answer. it finally gets compiled, yet I got an error about Ws2_32.lib cannot be opened. Well, Windows SDK 8.1 should fix it (maybe). Anyway, Thank you for the help.

mecharos avatar May 22 '18 17:05 mecharos

I found this stackoverflow page to be helpful: Basically, I had to run the Visual Studio installer again, and look for a sneaky checkbox off to one side for "Windows 8.1 SDK and UCRT SDK". Probably this is only an issue for the free "community" version of the installer.

https://stackoverflow.com/questions/38290169/cannot-find-corecrt-h-universalcrt-includepath-is-wrong/40164843

Migdalin avatar Dec 05 '18 21:12 Migdalin