#How do i compile c files
24 messages · Page 1 of 1 (latest)
You can use MinGW
-> install mingw
-> gcc -o output main.c mouse.c
C:\logitech-cve-main> gcc -o output main.c mouse.c
mouse.c:3:22: fatal error: winternl.h: No such file or directory
#include <winternl.h>
^
compilation terminated.
C:\logitech-cve-main> i get this error
btw. logitech-cve is a .sln file so you can just install vscode and open the .sln, will probably be easier to compile for you
sio once im here
or use gcc like that:
-> gcc -o output main.c mouse.c -I"/path/with spaces/to/the/include"
what do i do
sorry not vscode, i wanted to say visual studio
or that^^
am i meant to replace the quotes with something
or just paste that directly
well you are trying to use winternl.h, so you have to tell gcc the path to it
how would it know where the file is located
you have to replace /path/with spaces/to/the/include with the actual path of the library
idk where winternal.h is located tho
maybe in some windows kits folder
"The winternl.h header is in a non-standard import location. If you're using visual studio, you have to add an additional include directory"
i found this online
so?
or import in visual studio if you are using visual studio
but thats bascially the same thing