I'm just a newbie. I don't know why "make" is not working. I did the instructions in the book.
-I created a makefile.txt
-I put the target, dependencies and the rule/command
encrypt.o: encrypt.c encrypt.h
gcc -c encrypt.c
practice.o: practice.c encrypt.h
gcc -c practice.c
executable: practice.o encrypt.o
gcc practice.o encrypt.o -o executable
-I'm using 'tab' to indent those commands (gcc -c practice.c, etc. . .) don't know why it's not indenting here.
-then in the command prompt I typed:
make executable
And this error came:
'-make' is not recognized as an internal or external command,
operable program or batch file.
Is there another process for Windows? I'm in Windows 10 using mingw32. I also have TDM-GCC-64. But since I'm a newbie, I don't have any Idea about them.
https://sourceforge.net/projects/mingwbundle/files/latest/download -- with Mingw+msys
Only msys
, you can download from: https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&cad=rja&uact=8&ved=0ahUKEwjC5YyV1NXVAhUP1WMKHS6qDawQFghAMAM&url=http%3A%2F%2Fprdownloads.sf.net%2Fmingw%2FMSYS-1.0.10.exe%3Fdownload&usg=AFQjCNHKJSr677lkRS3MF0DiWTHCNldeXQ
make
is inside msys
package not Mingw
.
Note: please update PATH environmental variable for msys make
directory also.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.