gtk+ 3.1.2/git & MSVC++: GDK_IS_WIN32_WINDOW @ gtkclipboard.c causes troubles
- From: "Mikhail Titov" <mlt gmx us>
- To: "Gtk+ list" <gtk-list gnome org>
- Subject: gtk+ 3.1.2/git & MSVC++: GDK_IS_WIN32_WINDOW @ gtkclipboard.c causes troubles
- Date: Thu, 14 Apr 2011 01:12:28 -0500
Hello!
I noticed recently, when I was building either git version or 3.1.2 using MS VC++, that I’m getting hard times with GDK_IS_WIN32_WINDOW. It is only mentioned in "C:\obs\gtk+-3.1.2\gdk\win32\gdkwin32window.h" and recently was introduced in gtkclipboard.c . I just can’t build with it, however once I get rid of it, everything builds just fine both git version of gtk+ and 3.1.2 .
The problem arises when I build gtk-win32-vc90-d-3.1.dll :
gtkclipboard.c.obj : error LNK2019: unresolved external symbol _gdk_win32_window_get_type referenced in function _clipboard_get_timestamp
gtk-win32-vc90-d-3.1.dll : fatal error LNK1120: 1 unresolved externals
I can’t find where `gdk_win32_window_get_type` is defined. I see only ` gdk_win32_window_get_type_hint` in gdkwindow_win32.c and ` GType gdk_win32_window_get_type (void);` in gdkwin32window.h . Is it supposed to be generated somewhere?
Am I doing something wrong? I’m not sure if it is because I’m using mingw binary dependencies from OBS for gtk+ or something else. The simple change to pre 3.1.2 version like the following fixes everything
$ diff -urN gtk/gtkclipboard.c.orig gtk/gtkclipboard.c
--- gtk/gtkclipboard.c.orig 2011-04-13 08:38:18 -0500
+++ gtk/gtkclipboard.c 2011-04-14 00:28:57 -0500
@@ -493,7 +493,7 @@
else
#endif
#if defined GDK_WINDOWING_WIN32
- if (GDK_IS_WIN32_WINDOW (window))
+ if (1)
{
timestamp = GetMessageTime ();
}
P.S. I’ll update git-friendly CMakeLists.txt for native Win32 build using MSVC++ in Wiki in a while if someone is interested.
Mikhail
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]