9 Replies - 4309 Views - Last Post: 07 May 2012 - 10:34 AM

problem when configure GTK with visual studio 2008

Posted 01 May 2012 - 07:11 AM

hai,

I'm interested using GTK 2.4 to create GUI. I have tried to configure it with visual studio 2008. I followed the instruction in this link http://www.etechplan...evelopment.aspx
but when I debug my code, it results error Error

fatal error C1083: Cannot open include file: 'gdk-pixbuf/gdk-pixbuf.h': No such file or directory c:\gtk\include\gtk-2.0\gdk\gdkpixbuf.h 37 mygtk001

Re: problem when configure GTK with visual studio 2008

Posted 01 May 2012 - 09:07 AM

I download the package from www.gtk.org. they only provide contact for bussiness purposes. I also tried post to their forum, but no replied. hmm well, thanks for your time to try to help me resolve this error.. really appreciate it.

Re: problem when configure GTK with visual studio 2008

Posted 07 May 2012 - 10:34 AM

I had a similar problem when trying to build a project that used an older version of GTK in the past.
What seemed to work for me: (at least it made that error go away... I still need to do more the make a successful build)
-- Open the project properties
-- configuration properties >> c/c++ >> general >> additional include directories
-- there add another directory: for my environment the line looked like this

$(SolutionDir)\..\gtk-2.24.10\include\gdk-pixbuf-2.0

... my old project had quite a few directories already there ... but that one was missing... maybe it exists only in the newer version of the GTK toolkit