Sorry, it's probably a very lame question, but I can't seem to get this working. I can get them to show up in the projects, but any compile will fail with "undeclared funktion" and so on
I'm on a Win2000 machine with Athlon XP 1800.
Any help will be greatly appreciated
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
could you post some source code? It's a little difficult otherwise, there's lots of places that those sort's of errors could come from (I don't actually use GTK myself but I'll try and help if I can...)
//Adam
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, it's probably a very lame question, but I can't seem to get this working. I can get them to show up in the projects, but any compile will fail with "undeclared funktion" and so on
I'm on a Win2000 machine with Athlon XP 1800.
Any help will be greatly appreciated
Thanks
Have you linked the gtk library? Possibly you need to add:
-lgtk-win32-2.0.lib
to your linker command line
Or maybe not it's something else...
//Adam
No . . . do I have to ? I tried your solution but to no avail.
Still the same errors
could you post some source code? It's a little difficult otherwise, there's lots of places that those sort's of errors could come from (I don't actually use GTK myself but I'll try and help if I can...)
//Adam
Ok, here you go . . .I'm trying to compile this *very*
basic example from the tutorial.
#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;
}
The errors are as follows:
28 D:\Programme\Dev-Cpp\Mein\Makefile.win
[Build Error] [Warning] overriding commands for target `"GTK+'
22 D:\Programme\Dev-Cpp\Mein\Makefile.win
[Build Error] [Warning] ignoring old commands for target `"GTK+'
make.exe D:\Programme\Dev-Cpp\Mein\make.exe
Circular "GTK+ <- "GTK+ dependency dropped.
it's most likely that there is a space in your project's pathname (try absolutely no spaces in any filenames or paths)
either that or... are you using the original gcc version 2.95 or have you upgraded to v3.2? v3.2 might have some issues with some packages...
if that doesn't help, i'll have another look
//Adam