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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:14:02+00:00 2026-05-31T03:14:02+00:00

I wrote a program which uses Cryptopp library. I have created the static library

  • 0

I wrote a program which uses Cryptopp library. I have created the static library and will include it my distribution, but the program also requires a lot of header files. My question is do I need to include all those header files with my distribution?

For examples, I wrote a code which uses des.h, modes.h and filters.hwhich in turn is based on other header files in Cryptopp, a long chain. Do I include all header files from the Cryptopp library?

Making it more general, if I write some code which use other libraries(like Cryptopp or boost) what all do I need to include in distro?

Update: I want to distribute the source, not just the binaries. So that the user can compile my program from scratch if we wants to. I’m including the static library, but confused about header files. Do I need to include them all?

  • 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-31T03:14:04+00:00Added an answer on May 31, 2026 at 3:14 am

    No, you only distribute binary files. You don’t need headers to run a program.

    If, however, you’re distributing a library (not a program), you need to supply headers. Your headers, not third-party headers.

    You can exclude the third-party headers by a number of techniques, if they are part of the implementation only. If not, you’ll need to supply them also. Assuming you don’t need that, and you only use them internally, you can use forward declarations:

    //MyClass.h
    class ExternalClass;
    class MyClass
    {
       ExternalClass* p;
    } ;
    

    This way, you only need to include the third-party header in your implementation file, which you don’t distribute anyway.

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

Sidebar

Related Questions

How to write a java program which will tell me whether I have internet
I have written a program a.exe which launches another program I wrote, b.exe ,
I have a C program which uses a scanf to read a number and
I have an existing multi-threaded C++ program which uses a pool of sockets for
Hi I am trying to write a program which uses readdir but the entries
I have a program which uses an io_service and several threads. It instantiates some
I wrote a program which uses a number of built in modules. The program
I have a small example program which simply fopen s a file and uses
I wrote some program which uses information about (reads via Windows) hardware of the
I have a program which uses an API from dinput.dll (Direct Input), I have

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.