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 7558815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:28:12+00:00 2026-05-30T12:28:12+00:00

I find many examples on various gtk uses on the net but most of

  • 0

I find many examples on various gtk uses on the net but most of them contains included header

#include <config.h>

and I can’t fint this header nowhere so I can’t get those examples to work.

What is this about?
Where I can take or with what I can replace this header?
Or I can configure such files/projects differently to get them work as other gtk project works on my comp?

Currently I try to compile socket example testsocket.c and
during compilation I get error undefined reference to ‘create_child_plug’. I don’t see any reason for this to don’t work except in this header.
But I may be wrong anyway.

  • 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-05-30T12:28:14+00:00Added an answer on May 30, 2026 at 12:28 pm

    I think you’re trying to compile a single source file on its own, that wasn’t designed to work on its own. Two reasons.

    The first reason: config.h is the default name of the header file output by Autoconf that contains platform-specific defines. That’s why you won’t find it anywhere – it’s generated when you run ./configure on your project and its contents depend on how your system is configured. So it won’t be included with any project, you have to generate it yourself by using Autoconf. Or just comment out the #include <config.h> and see what definitions are missing, then define them yourself.

    The other reason:

    Currently I try to compile socket example testsocket.c and during compilation I get error undefined reference to ‘create_child_plug’. I don’t see any reason for this to don’t work except in this header.
    But I may be wrong anyway.

    Actually, that file contains a definition of create_child_plug:

    extern guint32 create_child_plug (guint32 xid, gboolean local);
    

    So the problem isn’t that create_child_plug isn’t defined. You don’t need a header, it’s defined right there in the source file. extern means that the actual code for this function is in a different source file. In this case, you are getting a link-time (not compile-time) error because the linker can’t find any code for that function. You should look for it in a .c file, not a .h file, and compile that code too.

    I suggest you download the whole GTK source code and compile that, and run the test programs from there, instead of picking individual source files off the net.

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

Sidebar

Related Questions

I can find many examples on how to do this in managed c++ but
I seem to find many tutorials on how to work with two table, but
I find that many high level functions are missing in most well-known javascript libraries
Was overwriting a TextView class, and as I didn't find many sources, I was
How can we find how many columns and rows are there in the html
Given the array, i need to find how many monotonically increasing Sub-arrays there are
I need to find out how many times the number greater than or less
How can I find out how many objects are created of a class in
I need to find out how many even values are contained in a binary
How would I be able to find out how many notifications I have through

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.