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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:31:16+00:00 2026-06-04T18:31:16+00:00

For example, I need to generate a shared library, libXXX.so. What’s the common way

  • 0

For example, I need to generate a shared library, libXXX.so.

  1. What’s the common way to generate it? Only use -fPIC -shared ?

  2. Do I need to create a soft link to this library? I mean using ln -s.

  3. What if I update the shared libray, ie. from libXXX.so.1.2.3 to libXXX.so.1.2.4, how my project knows that the shared library is updated? Do I need to re-compile the whole project again?

  4. What’s the common way to manage the shared library in Makefile?

I totally do not understand these issues. Please do me a favor 🙂

  • 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-06-04T18:31:18+00:00Added an answer on June 4, 2026 at 6:31 pm

    The topic on which you have raised the question is vast. Most of your questions depend upon your environment and also whether or not to create a softlink depends on in which folder you keep your library and which processes may need to access it etc.

    Please check this link & this link also which gives a detailed explanation on creating and using shared libraries.

    Some short answers to your questions:

    What’s the common way to generate it? Only use -fPIC -shared ?

    The options used depends on the compiler. fPIC helps in generating position independent code and shared makes the library a shared library. But, apart from, there are also options which can expose only those symbols which you decide to export from your library and options which create a strong link between the global symbols of your library (-symbolic) etc.

    Do I need to create a soft link to this library? I mean using ln -s.

    As I mentioned above, this depends on where you decide to place your library. The common mechanism is keep your library in some folder of your choice and create a link to it in commonly “known” or accessible folder like /usr/lib etc.

    What if I update the shared libray, ie. from libXXX.so.1.2.3 to
    libXXX.so.1.2.4, how my project knows that the shared library is
    updated? Do I need to re-compile the whole project again?

    One of the main advantages of shared library is that you can update latest versions without having to recompile the entire code. Again achieving this depends on the platform & compiler.

    What’s the common way to manage the shared library in Makefile?

    There are umpteen links available in google and my link also provides some basic detail.

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

Sidebar

Related Questions

I generate a shared library named, for example, mylib80.dll (it has postfix 80, because
A specific example I need to generate a random number between 0 and 2,
I need to generate XML in the following form: <ns1:root xmlns:ns1=http://example.com/xmlns1 xmlns:ns2=http://example.com/xmlns2> <ns2:item ns2:param=value
Does anyone know of a way to create more complex shared schedules? If not,
I'm making a Tweet This link in Rails. The URL I need to generate
I need to generate the combinations of numbers using ruby. For Example : arr
I want to use hipay in my site. So i need generate a xml
I need to generate a dependency graph for my java application but only for
I need example configuration to totally disable check-style for hashCode() and equals() methods.
For example I need to disable two buttons in runtime. After I disabled first

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.