c3lang / c3c

Compiler for the C3 language
https://c3-lang.org
GNU Lesser General Public License v3.0
2.7k stars 163 forks source link

Error: Failed to find windows kit root. #1497

Open juniorfr opened 6 days ago

juniorfr commented 6 days ago

Do you need any additional packages in Windows to run the code? and how do I download it? I'm a noob btw

joshring commented 6 days ago

try: https://c3-lang.org/install-c3/prebuilt-binaries/#installing-on-windows come on discord if you have trouble

lerno commented 5 days ago

Run the python script msvc_build_libraries.py , that should be enough.

juniorfr commented 5 days ago

Run the python script msvc_build_libraries.py , that should be enough.

That wasn't enough!

try: https://c3-lang.org/install-c3/prebuilt-binaries/#installing-on-windows come on discord if you have trouble

I tried this

I'm using Widows 11...

lerno commented 5 days ago

What error do you see? Do you have msvc_sdk folder that the python script produces in the same directory as c3c.exe?

juniorfr commented 5 days ago

I installed it following the guide above, with the msvc_sdk folder and still got the error failed to find windows kit root.

lerno commented 5 days ago

Can you show me the command you're using to compile?

juniorfr commented 5 days ago

image

lerno commented 5 days ago

Just to eliminate all possible errors, can you try copy everything to C:\ and run from there?

tonis2 commented 4 days ago

I just installed fresh Windows 11 and tried to run C3 on it

Steps I used

Maybe it helps @juniorfr

lerno commented 4 days ago

You should not need to download VS @tonis2

tonis2 commented 4 days ago

@lerno I had trouble getting cl.exe available at command line, whats the better way to download it at windows ?

lerno commented 4 days ago

What exe? @tonis2

tonis2 commented 2 days ago

Sorry my bad, Windows requires this cl.exe from me probably because I'm trying to compile a library with c-source file

This is the error I'm getting, I got it fixed, but I had to mess with Visual Studio

'cl.exe' is not recognized as an internal or external command,
operable program or batch file.
Failed to compile c sources using command '"cl.exe /c ./window.c3l\win32.c /Fo:build\tmp\c3w/win32.obj"'.

Example manifest

lerno commented 2 days ago

Yes, if you use c compilation you need a c compiler.

lerno commented 2 days ago

@juniorfr can you let us know the steps you took when trying to compile?