LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 04-09-2012, 04:12 AM   #1
raju39k
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Rep: Reputation: Disabled
Post 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;
}
 
Old 04-09-2012, 04:18 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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.
 
Old 04-09-2012, 02:22 PM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
@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.
 
1 members found this post helpful.
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Make file error make: *** [exec] Error 12 raju39k Linux - Newbie 2 04-09-2012 03:49 AM
make with make file yields error: /usr/bin/javac: cannot execute binary file bweaver Ubuntu 4 11-19-2010 03:58 PM
Error code 1 when trying to get 'make' package in DSL Munksgaard Linux - Software 2 06-27-2006 07:11 AM
Make Trouble linking some fortran code Make file problem? any ideas? TheBrick Linux - General 0 05-17-2006 12:21 PM


All times are GMT -5. The time now is 01:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration