[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 12:55:06
|
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
|