Cannot open source file errno h

Cannot open source file errno h

Comments

Copy link Quote reply

birgersp commented Apr 25, 2017

Windows 10, installed Visual Studio 10, added cl.exe to PATH.

(If it matters) cl.exe directory: C:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.10.25017inHostX64x64

This comment has been minimized.

Copy link Quote reply

purplepwny commented May 21, 2017

You need to install the Windows 10 SDK component of Visual Studio, as it contains the C runtime that provides errno.h.

This comment has been minimized.

Copy link Quote reply

birgersp commented May 23, 2017

I’ve installed Windows 10 SDK now, and I can see errno.h is located here:
C:Program Files (x86)Windows Kits10Include10.0.15063.0ucrt

Still getting the same error

This comment has been minimized.

Copy link Quote reply

purplepwny commented May 23, 2017

You should run luarocks install from the Developer Command Prompt for Visual Studio. You have errno.h now, but it’s not being picked up by CL because it’s not in your include path. Developer command prompt will set that up for you.

This comment has been minimized.

Copy link Quote reply

birgersp commented May 23, 2017

That gave me some progress. Seems I had an erroneous/half-completed installation of luafilesystem. Reinstalled lua and luarocks. Tried running luarocks install luafilesystem again but now it’s complaining about my "machine type".

This comment has been minimized.

Copy link Quote reply

purplepwny commented May 23, 2017

It looks like it’s trying to link 32 bit libs into what is otherwise a 64 bit build of luafilesystem—not familiar enough w/ luarocks or the Microsoft toolchain to know why. You should try using the version of Lua that comes with luarocks by specifying /L to the luarocks install script. That’s what worked for me.

Читайте также:  Мультиварка delonghi fh1394 рецепты

This comment has been minimized.

Copy link Quote reply

Bulat-Ziganshin commented May 23, 2017

you probably started default MSVC command prompt that is 64-bit. look into "visual studio 2015" folder in main programs menu and find there x86 command prompt. or just start simple cmd and run of the following commands, depending on your msvc version:

(disclaimer: i know nothing about luarocks, but sure it’s a way to setup msvc x86 compilation environment which i use a lot)

Ссылка на основную публикацию
360 Total security родительский контроль
Что, если мы расскажем, как защитить компьютер от онлайн угроз, сэкономив при этом на покупке дорогих лицензионных программ с громкими...
Adblock detector