From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25444 invoked by alias); 26 Feb 2003 13:12:43 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 25433 invoked from network); 26 Feb 2003 13:12:41 -0000 Received: from unknown (HELO snickers.hotpop.com) (204.57.55.49) by 172.16.49.205 with SMTP; 26 Feb 2003 13:12:41 -0000 Received: from hotpop.com (kubrick.hotpop.com [204.57.55.16]) by snickers.hotpop.com (Postfix) with SMTP id A16F3771AD for ; Wed, 26 Feb 2003 13:12:40 +0000 (UTC) Received: from soft215 (unknown [202.141.230.78]) by smtp-2.hotpop.com (Postfix) with SMTP id 0FABF1800D7 for ; Wed, 26 Feb 2003 13:12:36 +0000 (UTC) Message-ID: <00b901c2dd99$1be6cac0$d7c0c0c0@pserv.com> From: "Raheel" To: Subject: gtk application compile error Date: Wed, 26 Feb 2003 13:12:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- X-SW-Source: 2003-02/txt/msg00261.txt.bz2 hi ......... I have written a very basic program using gtk_widgets. And tried the command line switches. Below is what i got when try to compile: # gcc -Wall wind.c -o wind.o 'gtk-config --libs --cflags' > gcc: gtk-config --libs --cflags: No such file or directory > wind.c:2:21: gtk/gtk.h: No such file or directory > wind.c: In function `main': > wind.c:7: `GtkWidget' undeclared (first use in this function) > wind.c:7: (Each undeclared identifier is reported only once > wind.c:7: for each function it appears in.) > wind.c:7: `window' undeclared (first use in this function) > wind.c:9: warning: implicit declaration of function `gtk_init' > wind.c:11: warning: implicit declaration of function `gtk_window_new' > wind.c:11: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function) > wind.c:12: warning: implicit declaration of function `gtk_widget_show' > wind.c:14: warning: implicit declaration of function `gtk_main' plz help me, I am hanging between all this. Raheel. plz note my source code is: # include int main( int argc, char *argv[] ) { GtkWidget *window; gtk_init (&argc, &argv); window =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_show (window); gtk_main (); //printf ("this is first gcc program\n"); //printf ("%s", argv[1]); //printf ("%s", argv[2]); return 0; } AND my development box is solaris 8.0 (sparc).