Open EvenBetterClub opened 2 years ago
Thank you for writing up this guide! Really awesome that you did this.
I'm not sure if this is the right place to ask but I followed all your instructions, and I am getting this error:
make[1]: Entering directory 'PROJECT_DIRECTORY'
gcc c/chunk.c -std=c99 -Wall -Wextra -Werror -Wno-unused-parameter -O3 -flto
process_begin: CreateProcess(NULL, gcc -c -std=c99 -Wall -Wextra -Werror -Wno-unused-parameter -O3 -flto -o build/release/clox/chunk.o c/chunk.c, ...) failed.
make (e=2): The system cannot find the file specified.
make[1]: *** [util/c.make:51: build/release/clox/chunk.o] Error 2
make[1]: Leaving directory 'PROJECT_DIRECTORY'
make: *** [Makefile:66: clox] Error 2
Have you encountered this error or have any idea on how to fix this?
Thank you for writing up this guide! Really awesome that you did this.
I'm not sure if this is the right place to ask but I followed all your instructions, and I am getting this error:
make[1]: Entering directory 'PROJECT_DIRECTORY' gcc c/chunk.c -std=c99 -Wall -Wextra -Werror -Wno-unused-parameter -O3 -flto process_begin: CreateProcess(NULL, gcc -c -std=c99 -Wall -Wextra -Werror -Wno-unused-parameter -O3 -flto -o build/release/clox/chunk.o c/chunk.c, ...) failed. make (e=2): The system cannot find the file specified. make[1]: *** [util/c.make:51: build/release/clox/chunk.o] Error 2 make[1]: Leaving directory 'PROJECT_DIRECTORY' make: *** [Makefile:66: clox] Error 2
Have you encountered this error or have any idea on how to fix this?
Sorry - Haven't used since updated the notes etc - but this "feels wrong"..
_Entering directory 'PROJECTDIRECTORY'
Why would the code say entering directory 'PROJECT_DIRECTORY' ; I would "imagine - I'm not running a build" that it wold go "Entering directory c:\'abc'" for example ?! If you could print out the variable or whatever it thinks where you are it might help you figure it out - good hunting
Cheers
I should have been clearer in my comment. I substituted the actual directory path where I ran make
and replaced it with PROJECT_DRIECTORY. I also checked the directory to see if it has chunk.c
and it does.
But thanks for the help, I'll try to find out what the issue is.
Additional guidance for getting build to work on Windows