I did the modifications you suggested, but now I am even more confused. The follwing error is something I had never seen before, thus I find it very alarming. I know that it is just because I am new at GTK+ and that someone with you'r experience will have no problems spotting the error. Any way, here is the error message I am now getting ======================================================================= gcc.exe: cannot specify -o with -c or -S and multiple compilations
make.exe: *** [../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.o] Error 1 Execution terminated ======================================================================== And this is what my Makefile.win looks like: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Project: Gtk_Test # Makefile created by Dev-C++ 4.9.8.5 CPP = g++.exe CC = gcc.exe WINDRES = windres.exe RES = OBJ = ../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.o $(RES) LINKOBJ = ../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.o $(RES) LIBS = -L"C:/DEV-CPP/lib" -L"C:/Dev-Cpp/Lib/libz.a" -L"C:/Dev-Cpp/Lib/libglib-2.0.dll.a" -L"C:/Dev-Cpp/Lib/libgtk.dll.a" -L"C:/Dev-Cpp/Lib/libgdk.dll.a" -mwindows -lgtk-win32-2.0 -lgdk-win32-2.0 -lgthread-2.0 -lgdi32 -lole32 -luuid -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv INCS = -I"C:/DEV-CPP/include" -I"C:/Dev-Cpp/include/gtk-2.0" -I"C:/Dev-Cpp/include/gtk-2.0/gdk" -I"C:/Dev-Cpp/include/gtk-2.0/gdk-pixbuf" -I"C:/Dev-Cpp/include/gtk-2.0/gtk" -I"C:/Dev-Cpp/include/gdk" -I"C:/Dev-Cpp/include/atk-1.0/atk" CXXINCS = -I"C:/DEV-CPP/include/c++" -I"C:/DEV-CPP/include/c++/mingw32" -I"C:/DEV-CPP/include/c++/backward" -I"C:/DEV-CPP/include" -I"C:/Dev-Cpp/include/gtk-2.0" -I"C:/Dev-Cpp/include/gtk-2.0/gdk" -I"C:/Dev-Cpp/include/gtk-2.0/gdk-pixbuf" -I"C:/Dev-Cpp/include/gtk-2.0/gtk" -I"C:/Dev-Cpp/include/gdk" -I"C:/Dev-Cpp/include/atk-1.0/atk" BIN = Gtk_Test.exe CXXFLAGS = $(CXXINCS) CFLAGS = $(INCS)C:\Dev-Cpp\include\gtk-2.0 C:\Dev-Cpp\include\atk-1.0 C:\Dev-Cpp\include\pango-1.0 C:\Dev-Cpp\lib\glib-2.0 C:\Dev-Cpp\include\glib-2.0 C:\Dev-Cpp\lib\glib-2.0 \include C:\Dev-Cpp\lib\gtk-2.0\include .PHONY: all all-before all-after clean clean-custom all: all-before Gtk_Test.exe all-after clean: clean-custom rm -f $(OBJ) $(BIN) $(BIN): $(OBJ) $(CPP) $(LINKOBJ) -o "Gtk_Test.exe" $(LIBS) ../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.o: ../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.c $(CC) -c ../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.c -o ../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.o $(CFLAGS) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Look, I want you to know that I am very thankful for all the help you are giving me, so... Thanks again! * E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html ----- Original Message ----- From: Denis Korzunov Sent: 3/28/2004 12:11:43 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Dev-C++] Help compiling a GTK+ program > Friday, March 26, 2004, 10:52:00 AM, you wrote: > JJAl> I down loaded the GTK+ from > JJAl> 'http://www.dropline.net/gtk/download.php' I followed the > JJAl> [INCLUDE]\gtk-2.0 [INCLUDE]\gtkdeps-2.0 [INCLUDE]\atk-1.0 > JJAl> [INCLUDE]\pango-1.0 [INCLUDE]\glib-2.0 [LIB]\glib-2.0 > JJAl> [LIB]\glib-2.0\include [LIB]\gtk-2.0\include > JJAl> where does this go? > Put it into: > Project->project options->parameters->Compiler > > JJAl> What else do I need to do to compile my GTK+ program? > > Note, that both linker and compiler options must be a single line > without any Enter's in options (or some strange characters in makefile) > -- > Best regards, > Denis > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Dev-cpp-users mailing list > [EMAIL PROTECTED] > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > Entérate de las noticias más actualizadas de El Salvador y el mundo en www.elsalvador.com