GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sun Nov 23, 2014 6:54 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: using gtk+ with visual studio - problem
PostPosted: Tue Apr 09, 2013 6:42 pm 
Offline

Joined: Mon Apr 08, 2013 3:59 pm
Posts: 1
I downloaded the gtk all-in-one bundle and followed the tutorial for how to add it to projects from http://www.etechplanet.com/blog/visual- ... pment.aspx.

I did this on a 64-bit computer with Visual Studio 2008 and 2012 and on a 32-bit computer with Visual Studio 2008.
Following the instructions on the tutorial I've set the Include, Libraries and Linker additional dependencies data.

I tried to run a simple code:

#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;
}


I keep getting these 6 errors:
Error 6 error LNK1120: 5 unresolved externals exercise03.exe GUI exercise03
Error 3 error LNK2019: unresolved external symbol _gtk_init_abi_check referenced in function _main GUI exercise03
Error 4 error LNK2019: unresolved external symbol _gtk_main referenced in function _main GUI exercise03
Error 1 error LNK2019: unresolved external symbol _gtk_widget_show referenced in function _main GUI exercise03
Error 2 error LNK2019: unresolved external symbol _gtk_window_new referenced in function _main GUI exercise03
Error 5 error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup GUI exercise03


I tried any solution given on the matter but nothing works: subsystem = window/console, runtime library = \mt or any other option.

I really don't know what to try anymore.
Any suggestions?


Top
 Profile  
 
 Post subject: Re: using gtk+ with visual studio - problem
PostPosted: Mon Jun 03, 2013 12:03 pm 
Offline

Joined: Fri May 31, 2013 12:26 pm
Posts: 1
do your gtk support win32 or win64?


Top
 Profile  
 
 Post subject: Re: using gtk+ with visual studio - problem
PostPosted: Sat Jun 15, 2013 2:22 am 
Offline
Familiar Face

Joined: Wed Jan 30, 2013 8:28 pm
Posts: 20
I prefer code::block and there is some good windows 32bit installer for gtk3.6.1 I'm using it on my windows 7. you can get it from this website (it is a french website) I will give the right link to directly download the good installer:

http://www.tarnyko.net/dl/

donwload all the setup (in blue ) in the "GTK+ 3.6.1 pour Windows 32-bits" section


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group