Results 1 to 3 of 3

Thread: Gtk overloaded function...

  1. #1
    Join Date
    Jan 2010
    Beans
    7

    Gtk overloaded function...

    Hello, I'm making a program in c++ using gtk and I'm getting the following error.

    Code:
    error: overloaded function with no contextual type information
    In this line:
    Code:
    g_signal_connect(G_OBJECT(listen), (const gchar*)"clicked", G_CALLBACK(send), &data);
    I hope you can help me.

  2. #2
    Join Date
    Jan 2010
    Beans
    7

    Re: Gtk overloaded function...

    Ok, guys I have discovered the problem.
    It is that there are two headers with the same function.
    Now the question is: It there any way to specify the header I want?

  3. #3
    Join Date
    Sep 2009
    Location
    Canada, Montreal QC
    Beans
    1,809
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Gtk overloaded function...

    Could you provide the signature of both functions and the context that line is in?
    Maybe you can provide the compiler more context so the overloading mechanisms knows which one to choose.
    I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones.
    Freedom is measured in Stallmans.
    Projects: gEcrit

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •