Re: Re: [Dev-C++] Help compiling a GTK+ program
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Jameel J. A'l. <ja...@el...> - 2004-03-30 21:15:25
|
I did the modifications you suggested, but now I am even more confused.=20
The follwing error is something I had never seen before, thus I find it v=
ery alarming. I know that it is just because I am new at GTK+ and that so=
meone with you'r experience will have no problems spotting the error. Any=
way, here is the error message I am now getting
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
And this is what my Makefile.win looks like:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Project: Gtk_Test
# Makefile created by Dev-C++ 4.9.8.5
CPP =3D g++.exe
CC =3D gcc.exe
WINDRES =3D windres.exe
RES =3D=20
OBJ =3D ../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.o $(RES)
LINKOBJ =3D ../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.o $(RES)
LIBS =3D -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/libg=
dk.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 -lpan=
go-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv=20
INCS =3D -I"C:/DEV-CPP/include" -I"C:/Dev-Cpp/include/gtk-2.0" -I"C:/D=
ev-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"=20
CXXINCS =3D -I"C:/DEV-CPP/include/c++" -I"C:/DEV-CPP/include/c++/mingw3=
2" -I"C:/DEV-CPP/include/c++/backward" -I"C:/DEV-CPP/include" -I"C:/De=
v-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:/D=
ev-Cpp/include/gdk" -I"C:/Dev-Cpp/include/atk-1.0/atk"=20
BIN =3D Gtk_Test.exe
CXXFLAGS =3D $(CXXINCS)=20
CFLAGS =3D $(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\gl=
ib-2.0 C:\Dev-Cpp\lib\glib-2.0 \include C:\Dev-Cpp\lib\gtk-2.0\include =20
=2EPHONY: 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)
=2E./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: ja...@el...
Cc: dev...@li...
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=20
> JJAl> where does this go?
> Put it into:
> Project->project options->parameters->Compiler
>=20
> JJAl> What else do I need to do to compile my GTK+ program?
>=20
> Note, that both linker and compiler options must be a single line
> without any Enter's in options (or some strange characters in makefile)
> --=20
> Best regards,
> Denis =20
>=20
>=20
>=20
> -------------------------------------------------------
> 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=3D1470&alloc_id=3D3638&op=3Dc=
lick
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>=20
Ent=E9rate de las noticias m=E1s actualizadas de El Salvador y el mundo e=
n www.elsalvador.com
|