Makefile Error 1
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies
Make Error 1 Eclipse
of this site About Us Learn more about Stack Overflow the company gcc error 1 Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges
Make * * * Error 1 C++
Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a linux make error 1 minute: Sign up Makefile: Error1 up vote 6 down vote favorite 2 I have a very simple c programme: int main() { return(1); } and a simple Makefile: all: gcc -ansi -pedantic -o tmp tmp.c ./tmp However, when I type make I get the following error message: $ make gcc -ansi -pedantic -o tmp tmp.c ./tmp make: *** [all] Error 1 What make error codes obvious thing am I missing? c makefile share|improve this question asked Oct 27 '10 at 14:32 csgillespie 31.9k969117 add a comment| 3 Answers 3 active oldest votes up vote 18 down vote accepted Make exits with an error if any command it executes exits with an error. Since your program is exiting with a code of 1, make sees that as an error, and then returns the same error itself. You can tell make to ignore errors by placing a - at the beginning of the line like this: -./tmp You can see more about error handling in makefiles here. share|improve this answer answered Oct 27 '10 at 14:34 Alan Geleynse 16.3k23147 I knew it was going to be obvious. Thanks (to everyone) for the very quick answers –csgillespie Oct 27 '10 at 14:39 1 +1, for the ignore part. –codaddict Oct 27 '10 at 14:39 Yeah I ran into this exact error a few months ago. I had to look up the syntax again to ignore errors though, its not something I use enough to remember. –Alan Ge
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies
Makefile Error 2
of this site About Us Learn more about Stack Overflow the company make error 2 Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users
Gcc Pulse Err1
Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a http://stackoverflow.com/questions/4034392/makefile-error1 minute: Sign up Error 1 when makefile is executed up vote 0 down vote favorite The following code I obtained from http://ftp.cc.uoc.gr/mirrors/OpenBSD/src/usr.sbin/tcpdump/print-lldp.c to include the LLDP functionality to my project using Ubuntu as my base operating system. /* $OpenBSD: print-lldp.c,v 1.6 2009/11/12 00:02:16 deraadt Exp $ */ /* * Copyright (c) 2006 Reyk Floeter
Help Rules Groups Blogs What's New? Teardown Videos Datasheets Advanced Search Forum EDA Software Linux Software [SOLVED] Make file Errors: make: *** [AIQ7] Error 1 + Post New Thread Results 1 to 3 of http://www.edaboard.com/thread247616.html 3 Make file Errors: make: *** [AIQ7] Error 1 LinkBack LinkBack URL About LinkBacks http://www.cplusplus.com/forum/general/106512/ Thread Tools Show Printable Version Download This Thread Subscribe to this Thread… Search Thread Advanced Search 7th April 2012,06:59 #1 raju39k Newbie level 4 Join Date Apr 2012 Posts 5 Helped 0 / 0 Points 151 Level 2 Make file Errors: make: *** [AIQ7] Error 1 I am trying to clean old executable files error 1 and make fresh compile I am Using the following makefile Code: AIQ7:clean compile clean:AIQ7
this project. And whenever I come to compile it, I get a make file error. Its weird cuz all the other projects compiles correctly. And even when I come to copy some new short code replacing the original one, it compiles perfectly, which is making me more sure that there is some mistake in the code itself. First of all, here is the make file: 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Project: Project1 # Makefile created by Dev-C++ 4.9.9.2 CPP = g++.exe CC = gcc.exe WINDRES = windres.exe RES = OBJ = main.o $(RES) LINKOBJ = main.o $(RES) LIBS = -L"C:/Dev-Cpp/lib" -L"C:/SDL-1.2.15/lib" -mwindows -lmingw32 -lSDLmain -lSDL INCS = -I"C:/Dev-Cpp/include" CXXINCS = -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/SDL-1.2.15/include" BIN = A-Engine.exe CXXFLAGS = $(CXXINCS) CFLAGS = $(INCS) RM = rm -f .PHONY: all all-before all-after clean clean-custom all: all-before A-Engine.exe all-after clean: clean-custom ${RM} $(OBJ) $(BIN) $(BIN): $(OBJ) $(CPP) $(LINKOBJ) -o "A-Engine.exe" $(LIBS) main.o: main.cpp $(CPP) -c main.cpp -o main.o $(CXXFLAGS) The compile log: 1
2
3
4
5
6
7
8
9
10
Compiler: Default compiler Building Makefile: "C:\Users\user01\Desktop\A-Studios\C++\SDL\A-Engine\Makefile.win" Executing make... make.exe -f "C:\Users\user01\Desktop\A-Studios\C++\SDL\A-Engine\Makefile.win" all g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/SDL-1.2.15/include" make.exe: *** [main.o] Error 1 Execution terminated The project files: http://pastebin.com/5BWq8iEJ (main.cpp file) http://pastebin.com/p3ZjdS8A (Object.h file) What am I doing wrong this time ?_? ??? Thanks for your time and dedication! (and sorry for the page stretch) Last edited on Jul 16, 2013 at 12:59pm UTC Jul 16, 2013 at 2:05pm UTC Nobun (138) I don't k