raju39k
Newbie level 4
I am trying to execute c program with make command
But i am getting the following error
My make file is
And my c program is
Please solve problem
But i am getting the following error
Code:
[secrrk@ganga5 Q-1]$ make all
make: Warning: File `makefile' has modification time 4.1e+02 s in the future
gcc -o AIQ1 AIQ1.c
echo "Compile Completed"
Compile Completed
./AIQ1
Program to distinguish Wheather input character in Lower Case, Upper Case or DigitEnter any character or Number :4
You Entered a Number
make: *** [exec] Error 24
My make file is
Code:
all:compile exec clean
clean:exec
rm AIQ1
echo "Clean completed"
exec:compile
./AIQ1
echo "Executed"
compile:AIQ1.c
gcc -o AIQ1 AIQ1.c
echo "Compile Completed"
And my c program is
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #include<stdio.h> main() { char choice; int t; printf("Program to distinguish Wheather input character in Lower Case, Upper Case or Digit"); printf("Enter any character or Number :"); scanf("%c",&choice); t=(int)choice; if(t>=97 && t<=122) printf("\t\t%c\n\n",choice); else if(t>=65 && t<=90) printf(""); else if(t>=48 && t<=57) printf("\t\tYou Entered a Number\n\n"); }
Please solve problem
Last edited by a moderator: