|
From: Jim C. <ji...@ms...> - 2013-03-07 22:24:12
|
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 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 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 Makefile uses $(INC) in a way that doesn't make sense to me. The > value of INC is a compiler switch, but then why do you use it as a > prerequisite for $(MAIN) ? > > See, what happens here is that you are stomping on a fragile feature > of Make on Windows, whereby it understands that a colon ':' in certain > contexts does not signal a target or a list of dependencies or a > target pattern. But when you precede "c:" with -I, you break the > logic which figures out that c: is a drive spec. So you get a > nonsensical error message from Make. > > But since your usage of $(INC) doesn't make sense anyway, I don't > think there's any bug in Make revealed by this. Simply don't do that; > if you remove -I from the value of INC, everything is dandy. > > > ------------------------------------------------------------------------------ > Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester > Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the > endpoint security space. For insight on selecting the right partner to > tackle endpoint security challenges, access the full report. > http://p.sf.net/sfu/symantec-dev2dev > _______________________________________________ > MinGW-users mailing list > Min...@li... > > This list observes the Etiquette found at > http://www.mingw.org/Mailing_Lists. > We ask that you be polite and do the same. Disregard for the list > etiquette may cause your account to be moderated. > > _______________________________________________ > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > Also: mailto:min...@li...?subject=unsubscribe > |