Re: unresolved external symbol _gdk_win32_drawable_get_handle
- From: Armin Burgmeier <armin arbur net>
- To: Paulo Flabiano Smorigo <pfsmorigo gmail com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: unresolved external symbol _gdk_win32_drawable_get_handle
- Date: Thu, 25 Sep 2008 21:34:03 +0200
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
Armin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]