DEV C++ installation GTK

375 views
Skip to first unread message

Aman (neshu) Agarwal

unread,
Oct 23, 2009, 9:49:20 AM10/23/09
to allahabad-f...@googlegroups.com


Hi

I want to develop GTK application on windows XP using DEV-C++ and for this I download DevEx (GTK Extension for Dev-C++) and install it in folder C:/Dev-CPP but after compilation it will come up with linker error please help me

#include <stdio.h>
#include <stdlib.h>
#include <gtk/gtk.h>

int main(int argc, char *argv[])
{
  printf("Hello World\n");
  GtkWidget *window;

  gtk_init(&argc, &argv);

  window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
  gtk_widget_show(window);

  gtk_main();


  system("PAUSE");   
  return 0;
}


C:\Dev-Cpp\include\gtk\gtk.h:31,      from C:\Documents and Settings\Administrator\Desktop\aa.c  from C:/Dev-Cpp/include/gtk/gtk.h:31,  from C:\Documents and Settings\Administrator\Desktop\aa.c
  [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'


--
:-Aman

Abhishek Mishra

unread,
Oct 23, 2009, 9:58:50 AM10/23/09
to allahabad-f...@googlegroups.com
Well, how about writing it in PyGTK if you know a bit of python, in
this way there won't be much resistance to code portability neither
would you have to make great changes to the code to port. Another idea
would be to use Qt creator on windows, which also integrates with
visual studio as far as I remember.
DevCpp's development has been slow over last few years, I haven't seen
anything after 5 Beta. So not many would bother if it had something
broken in it.

regards,
Abhishek Mishra

Aman (neshu) Agarwal

unread,
Oct 23, 2009, 10:03:57 AM10/23/09
to allahabad-f...@googlegroups.com
Actually I want to integrate my application with opencv
--
:-Aman

Abhishek Mishra

unread,
Oct 23, 2009, 10:19:33 AM10/23/09
to allahabad-f...@googlegroups.com
We had done that using emgu.cv , a C# wrapper for OpenCV. After the
the ui becomes a childplay in Visual Studio :)

Ishan Chattopadhyaya

unread,
Oct 23, 2009, 11:58:27 AM10/23/09
to allahabad-f...@googlegroups.com
Oh my god, what an honour you used DevEx. But hey, am so sorry, its old and outdated version of GTK+, doesnt work with current DevCpp versions. Get latest binaries from Tor Lillqvist's pages and start again.
Regards,
Ishan


On Fri, Oct 23, 2009 at 7:49 PM, Abhishek Mishra <idea...@gmail.com> wrote:

We had done that using emgu.cv , a C# wrapper for OpenCV. After the
the ui becomes a childplay in Visual Studio :)





--
---------------------------------------------------------------
Ishan Chattopadhyaya
Email: is...@chattopadhyaya.com
Website: www.ishan.chattopadhyaya.com
---------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages