|
From: Earnie B. <ea...@us...> - 2013-03-08 13:52:00
|
On Thu, Mar 7, 2013 at 5:16 PM, Jim Crews <ji...@ms...> wrote: PLEASE DO NOT TOP POST. See http://mingw.org/lists.shtml for Etiquette. > Thanks so much for your response. As you may have guessed I'm new to this, > but am trying to set everything up so I can begin learning some C and C++. > > I changed the variable name to INCLUDES (in case it conflicted with That doesn't matter. > something I didn't know about) and removed the -I. Same problem. I also > tried the following formats for assigning the variable: > > INCLUDES = -I"c:\GTK\include\gtk-2.0" > INCLUDES = -I'c:\GTK\include\gtk-2.0' > INCLUDES = "c:\GTK\include\gtk-2.0" > INCLUDES = c:\GTK\include\gtk-2.0 > Ok, but ... > which resulted in the same error. If I change the path to exclude the c: > then I get the "fatal error: gtk/gtk.h: No such file or directory" > > > On Thu, Mar 7, 2013 at 4:41 PM, Eli Zaretskii <el...@gn...> wrote: >> >> > Date: Thu, 7 Mar 2013 16:16:42 -0500 >> > From: Jim Crews <ji...@ms...> >> > >> > I'm a first time user of this list so I hope I'm addressing it to the >> > proper group. >> >> Actually, mak...@gn... is a better place. >> >> > I am trying to use the mingw32-make command on Windows 7, but receive an >> > error every time stating "*** multiple target patterns". I have no idea >> > what this means and have spent many hours online trying to find a >> > solution. >> > >> > My guess from everything I've read is that it has to do with the first >> > line >> > in my makefile: >> > >> > INC = -Ic:\GTK\include\gtk-2.0 >> > >> > MAIN = graphictest >> > OBJS = graphictest.o >> > >> > CC=gcc >> > CFLAGS = -Wall -g >> > >> > $(MAIN): $(MAIN) $(OBJS) $(INC) This is the real issue. Expand the variables and you'll see that $(INC) or $(INCLUDE) because it contains a : is causing make to look at it as multiple targets instead of one target. Remove the $(INC) or $(INCLUDE) from this line and give it another try. -- Earnie -- https://sites.google.com/site/earnieboyd |