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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:57:03+00:00 2026-05-27T12:57:03+00:00

As I’ve haven’t found a proper way to link program (writteln in c++) statically

  • 0

As I’ve haven’t found a proper way to link program (writteln in c++) statically if I’m going to use plug-ins in it (linker warns that dlopen require glibc shared libraries at runtime). Also I’m not able not build dynamically-linked binaries for most of linux distibutions currently, so I could either distribute source only or try to distribute binaries along with shared libraries found in my system by ldd, for example:

libc.so.6
libdl.so.2
libgcc_s.so.1
libm.so.6
libstdc++.so.6

since I suppose that it is more easy for user to be asked to add to .bash_profile

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path to program directory>

than to compile program and plugins from scratch.

So, first of all, am I right that I could re-distribute those libraries freely because they are licensed under GNU LGPL?

And does it makes any sense to do it, will the program run in most linux distributions and its versions correctly?

  • 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-27T12:57:04+00:00Added an answer on May 27, 2026 at 12:57 pm

    The best way to distribute binaries is to publish your program in source form with a free license (like GPL); then distribution makers (and contributors) will eventually package your program for their distribution (and you don’t have to bother with that).

    Otherwise, you could distribute binary packages for some few major Linux distributions (eg .debfor Debian or Ubuntu with .rpm for Redhat or Centos or Mandriva).

    Some non-free software (like AMD/ATI Catalyst fglrx for driving ATI graphics card) are distributed in a form which generates appropriate binary packages (on the end-user machine).

    All the libraries you mention are available in every standard not too old Linux distribution. You don’t need to distribute them, just mention that you need them (and give a precise list of them, with their version number).

    I would really avoid  [re-] distributing the system libraries like libc.so.6 or libstdc++.so.6; the main reason to avoid distributing them is that your user (installing your copies on his system) will very probably make a big mess on his own system (and that could break other existing programs, which will make your user pissed off). Of course, if you choose (wrongly in my opinion) to distribute them, you have to comply with their license. But your users already have them, and by re-distributing them you increase the probability of a big mess. So just give the binary executable of your program (suitably packaged), without the system libraries that it requires.

    All package managers (and package formats) deal with dependencies (on other packages), so will install e.g. libstdc++.so.6 in the rare cases when the user’s system don’t have it already.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
Basically, what I'm trying to create is a page of div tags, each has

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.