Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8255025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:23:37+00:00 2026-06-08T01:23:37+00:00

I have a gtk program in which I am calling a gdk function. I

  • 0

I have a gtk program in which I am calling a gdk function. I am compiling the program using:

 gcc `pkg-config --cflags --libs gtk+-2.0 cairo glib-2.0` ...

and I have included

#include <gdk/gdk.h>

it gives me the error:

undefined reference to `gdk_device_ungrab'

Does anyone know what I am doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T01:23:38+00:00Added an answer on June 8, 2026 at 1:23 am

    You are compiling and linking against gtk 2.x and gdk_device_ungrab is available only starting from gtk 3.0.

    See:
    http://developer.gnome.org/gdk3/3.4/GdkDevice.html#gdk-device-ungrab

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following c program which launches a Gtk Program on ubuntu: #include
I have a gtk.TextBuffer which is supposed to be cleared after pressing Enter, similar
I'm writing an python program (gui in gtk) (linux btw.) I want to have
I have installed wxWidgets 2.9.3 on Ubuntu 10.10 using ../configure --with-gtk I am using
I've started learning Lisp recently and wanted to write a program which uses gtk
I have a GTK program running on Ubuntu 10.04 that hangs in interruptible state,
I have a Haskell program that uses Gtk/GtkGLExt and runs fine on Linux (up-to-date
I have a PyGTK program which is hidden most of the time, but with
Using D1 with phobos I have a text entry field, instance of gtk.Entry.Entry ,
i have a simple program which is compiled with gtk2.0 in ubuntu.In ubuntu11.04 i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.