This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Re: [Dev-C++] Help compiling a GTK+ program
- From: Tor Lillqvist <tml at iki dot fi>
- To: "Jameel Jaasab A'lkedir" <jamil at elsalvador dot com>
- Cc: "Cygwin XFree mailing list" <cygwin-xfree at cygwin dot com>,"dev-cpp-users" <dev-cpp-users at lists dot sourceforge dot net>,"GTK+ mailing list" <gtk-app-devel-list at gnome dot org>,"disya2" <disya21 at yandex dot ru>
- Date: Tue, 30 Mar 2004 23:32:19 +0000
- Subject: Re: Re: [Dev-C++] Help compiling a GTK+ program
- References: <45b4bad95a754bc5b207b0d3cf94f6ce.jamil@elsalvador.com>
- Reply-to: cygwin-xfree at cygwin dot com
Jameel Jaasab A'lkedir writes:
> 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+
> gcc.exe: cannot specify -o with -c or -S and multiple compilations
> 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
> $(CC) -c ../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.c -o ../Downloads/Programs/Gtk/gtk/chapter2/gtkfun.o $(CFLAGS)
This problem is not GTK+ related at all. The gcc error message says
what the problem is. You have both -c and -o, but gcc thinks you are
compiling multiple files. Your CFLAGS is screwed up. You have
forgotten the -I in front of the directory names. (And you have an
extra space in there.)
--tml