RE: [Dev-C++] Problem linking simple GTK+ prog with Dev-Cpp 4.9.5.0
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Mark B. <jmb...@ea...> - 2002-08-10 14:20:06
|
One other note. I installed GTK+ with the package manager.
Mark Brooks
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...]On Behalf Of Mark
> Brooks
> Sent: Saturday, August 10, 2002 8:56 AM
> To: dev...@li...
> Subject: [Dev-C++] Problem linking simple GTK+ prog with Dev-Cpp 4.9.5.0
>
>
> Hello. I'm trying to get the GTK+ 2.0.3 package to work correctly with my
> Dev-Cpp install on Win2k. I'm using the default minGW complier that comes
> with Dev-Cpp, and I've installed all the Dev-Cpp updates that the update
> tool says are available.
>
> I believe that I have the include directories properly registered with the
> IDE. What I'm getting are linking errors.
>
> [Linker error] undefined reference to `gtk_init_abi_check'
> [Linker error] undefined reference to `gtk_window_new'
> [Linker error] undefined reference to `gtk_widget_show'
> [Linker error] undefined reference to `gtk_main'
>
> Here is the simple program I'm trying to get to compile and run
> correctly as
> a test of my GTK setup:
>
> #include <gtk/gtk.h>
>
> int main (int argc, char *argv[])
> {
>
> GtkWidget *window;
>
> gtk_init (&argc, &argv);
>
> window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
>
> gtk_widget_show (window);
>
> gtk_main();
>
> return 0;
>
> }
>
> As I said, a simple test program.
>
> I'm sure that there's something I haven't configured correctly that is
> causing the problem. Could it be that I need to insert '-lglib' and
> '-lgtk+' in my compiler options somewhere?
>
> Thanks for any assistance.
>
> Mark Brooks
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|