Re: unresolved external symbol _gdk_win32_drawable_get_handle

On Thu, 2008-09-25 at 16:04 -0300, Paulo Flabiano Smorigo wrote:
> Hi everybody,
> I'm getting the "unresolved external symbol
> _gdk_win32_drawable_get_handle" error when compile my application on
> windows... :'(
> The code:
> Glib::RefPtr<Gdk::Window> _winVideo = m_drwVideo.get_window();
> *p_windowID = (int)GDK_WINDOW_HWND(_winVideo->gobj());

I guess you are compiling with MinGW, right? What version of GTK+ do you
compile against, and what command do you use to compile?

I can compile this code:

#include <gtkmm.h>
#include <gdk/gdkwin32.h>

int main()
	Gtk::VBox wdg;
	Glib::RefPtr<Gdk::Window> window = wdg.get_window();
	int foo = (int)GDK_WINDOW_HWND(window->gobj());

without problems against gtkmm 2.14.1 and GTK+ 2.14.3, using

g++ bla.cpp -o bla `pkg-config --cflags --libs gtkmm-2.4`

from msys.

(Note that that code doesn't make any sense, but it uses the same
functions as your code, and it compiles flawlessly).

By the way, it is not portable to store a HWND (which is a pointer,
actually) into an integer. This will probably fail on 64 bit Windows.
But this has nothing to do with your linker problem.

> Thanks...
> Paulo Flabiano Smorigo


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]