From: "Raheel" <raheel.khan@hotpop.com>
To: <gcc-help@gcc.gnu.org>
Subject: gtk application compile error
Date: Wed, 26 Feb 2003 13:12:00 -0000 [thread overview]
Message-ID: <00b901c2dd99$1be6cac0$d7c0c0c0@pserv.com> (raw)
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 <gtk/gtk.h>
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).
next reply other threads:[~2003-02-26 13:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-26 13:12 Raheel [this message]
2003-03-03 15:00 ` LLeweLLyn Reese
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='00b901c2dd99$1be6cac0$d7c0c0c0@pserv.com' \
--to=raheel.khan@hotpop.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).