flagxor / ueforth

Apache License 2.0
90 stars 26 forks source link

Can't build for Windows on WSL #38

Closed znmeb closed 4 months ago

znmeb commented 1 year ago

I'm trying to build ueforthfor Windows on a Windows Subsystem for Linux Ubuntu 22.04 LTS command line. It found the compiler but seems to be missing a header file dependency:

$ make win32
"/mnt/c/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x86/cl.exe" /c /Foout/windows/uEf32.obj -O2 -I ./ -I out -I "c:/Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Include" -I "c:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/include" -I "c:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/ucrt" windows/main.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30145 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

main.c
windows/main.c(16): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
make: *** [Makefile:413: out/windows/uEf32.obj] Error 2
$ make win64
"/mnt/c/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe" /c /Foout/windows/uEf64.obj -O2 -I ./ -I out -I "c:/Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Include" -I "c:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/include" -I "c:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/ucrt" windows/main.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30145 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

main.c
windows/main.c(16): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
make: *** [Makefile:433: out/windows/uEf64.obj] Error 2

Can I build for Windows on WSL? If not, how do I build for Windows on a Windows machine?

znmeb commented 4 months ago

Closing this - the new build system is the only thing blocking me at the moment.