Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Make File Error make: *** [exec] Error 24

Status
Not open for further replies.

raju39k

Newbie level 4
Joined
Apr 3, 2012
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,313
I am trying to execute c program with make command

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:

guttinasrinivas

Member level 1
Joined
Apr 4, 2005
Messages
39
Helped
4
Reputation
8
Reaction score
3
Trophy points
1,288
Activity points
1,743
Why are you trying to execute from makefile?

Try returning zero from main.
 

raju39k

Newbie level 4
Joined
Apr 3, 2012
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,313
Thank you for your valuable Information

My problem was solved

By returning 0 is the solution

Once again Thank you
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top