#How do i compile c files

24 messages · Page 1 of 1 (latest)

quick nest
junior nest
# quick nest

You can use MinGW
-> install mingw
-> gcc -o output main.c mouse.c

quick nest
junior nest
junior nest
#

or use gcc like that:
-> gcc -o output main.c mouse.c -I"/path/with spaces/to/the/include"

quick nest
#

what do i do

junior nest
quick nest
#

or just paste that directly

junior nest
#

how would it know where the file is located

quick nest
#

ok so i need to cd to it?

junior nest
#

you have to replace /path/with spaces/to/the/include with the actual path of the library

quick nest
junior nest
#

maybe in some windows kits folder

quick nest
#

i found this online

junior nest
#

so?

junior nest
#

or import in visual studio if you are using visual studio

#

but thats bascially the same thing