Continue to Site

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 Errors: make: *** [AIQ7] Error 1

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 clean old executable files and make fresh compile

I am Using the following makefile

Code:
AIQ7:clean compile

clean:AIQ7
<tab>rm -f AIQ7
<tab>echo "Clean Completed"

compile:AIQ7.c
<tab>gcc -o AIQ7 AIQ7.c
<tab>echo "Compile Completed"

These are the errors I am getting

Code:
make -f AIQ7.make

make: Warning: File `AIQ7.make' has modification time 4e+02 s in the future
make: Circular clean <- AIQ7 dependency dropped.
rm -f AIQ7
echo "Clean Completed"
Clean Completed
gcc -o AIQ7 AIQ7.c
echo "Compile Completed"
Compile Completed
cc     AIQ7.c clean compile   -o AIQ7
cc: clean: No such file or directory
cc: compile: No such file or directory
make: *** [AIQ7] Error 1

Will you explain me how to resolve warnings and error

This is my C program


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
main()
{
 int a,o;
 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",o);
 return 0;
}



please give me solutions for all warnings and errors
 
Last edited by a moderator:

your make file looks messed up.Start with command line

type on the command prompt
gcc -o AIQ7 AIQ7.c

and then report any errors
 

Thanks for your information


your make file looks messed up.Start with command line

type on the command prompt
gcc -o AIQ7 AIQ7.c

and then report any errors
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top