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

  • SEARCH
  • Home
  • 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 669513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:09:33+00:00 2026-05-14T00:09:33+00:00

I am starting to learn about makefiles. Looking at the output I see a

  • 0

I am starting to learn about makefiles. Looking at the output I see a lot of occurrences of:

g++ -DHAVE_CONFIG_H -I ...

what is -DHAVE_CONFIG_H exactly? What is the function of this compilation option?

  • 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-14T00:09:33+00:00Added an answer on May 14, 2026 at 12:09 am

    All that -DHAVE_CONFIG_H does is to define the pre-processor token HAVE_CONFIG_H exactly as if you had #define HAVE_CONFIG_H right at the start of each of your source files.

    As to what it’s used for, that depends entirely upon the rest of your source file (and everything that it includes as well). That’s where you should be looking for to work out its effect.

    It looks like it may mean that a header file config.h is available and should be included, in which case you’ll probably find the following sequence somewhere in you source files:

    #ifdef HAVE_CONFIG_H
        #include "config.h"
    #endif
    

    which will include the header file when you say it’s available. However that’s supposition on my part and by no means the exact effect, just what I would use such a preprocessor symbol for.

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

Sidebar

Related Questions

I am just starting to learn about spring and was looking at the difference
I am starting to learn about ajax with jquery and I've tried a lot
I stumbled across this while starting to learn about vars here: http://msdn.microsoft.com/en-us/library/bb384061.aspx However, I
im just starting to learn about sockets and i have been given this code,
I'm starting to learn about COBOL. I have some experience writing programs that deal
I'm just starting to learn about printing with Java Swing, so please bear with
I'm starting out to learn about AMQP and RabbitMQ. To get myself going I
Alright, so I'm starting to learn more about Coco2D, but I'm kinda frusterated. A
I am just starting to learn a little about PHP; having trouble with the
I'm just starting to learn about jQuery. I'm more of a html+css web designer

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.