Make file error code 1 make: *** [AIQ7] Error 1
this error i am getting while executing makefile
$ make -f AIQ7.make make: Warning: File `AIQ7.c' has modification time 8.4e+02 s in the future gcc AIQ7.c -o AIQ7 echo "Compile Completed" Compile Completed ./AIQ7 < input.txt > output.txt cat output.txt Multiply by 100 & print if Number is even else print as it is Enter a Number Input Number is: 39 Output Number is: 39 rm -f AIQ7 output.txt echo "Clean Completed" Clean Completed cc AIQ7.c compile exec clean -o AIQ7 cc: compile: No such file or directory cc: exec: No such file or directory cc: clean: No such file or directory make: *** [AIQ7] Error 1 Makefile is: AIQ7:compile exec clean compile: gcc AIQ7.c -o AIQ7 echo "Compile Completed" exec: ./AIQ7 < input.txt > output.txt cat output.txt clean: rm -f AIQ7 output.txt echo "Clean Completed" C program is: #include<stdio.h> main() { int a,o; printf("\nMultiply by 100 & print if Number is even else print as it is\n"); printf("\n\tEnter a Number"); scanf("%d",&a); o=a; if(a%2==0) o*=100; printf("\n\tInput Number is: %d",a); printf("\n\tOutput Number is: %d\n\n",o); return 0; } |
This is almost identical to the two threads you've already posted, one of which is already closed. Please refrain from posting multiple threads on the same topic. Continue in the original thread here.
|
@raju39k: I received your report, but I second what Nylex said above. The problems are strictly related and I'm sure once you've solved one of them, the others will be solved as a consequence. Please continue discussion here. You may want to edit your original post to add more information.
Moreover, please use CODE tags to embed the code or the command line statements. They will be more readable and will preserve spacing and indentation, sometimes revealing a glitch otherwise unnoticed, that can be the cause of your issue. To use CODE tags, you can explicitly put [CODE] and [/CODE] immediately before and after the lines of code respectively. Or switch to advanced mode, select the text you want to enclose in CODE tags and press the # button. Thank you. This thread closed as a duplicate. |
All times are GMT -5. The time now is 05:48 AM. |