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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:08:43+00:00 2026-06-14T17:08:43+00:00

I want to create an abstract linked-list implementation (having general operations to createList ,

  • 0

I want to create an abstract linked-list implementation (having general operations to createList, destroy, addNode, deleteNode, etc.). How do I make these functions available to anyone who is using the OS? (I am using Ubuntu.)

I can have the declaration of a function:

In add.h:

int add(int a,int b);   /* add.h having the declaration */  

In add.c:

#include "add.h"    
int add(int a,int b)    /* add.c having only definition */
{
    return (a+b);
}

In main.c:

#include<stdio.h>
#include"add.h"
int main() 
{
 //use add() here
}

How do I have the API set up in the Linux environment such that the implementation in add.c is hidden from the user of the API? I don’t want to force the users of the API to copy the add.h file in their working directory; I’d rather have some way to install it to the Linux environment.

  • 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-14T17:08:44+00:00Added an answer on June 14, 2026 at 5:08 pm

    If the solution of bobah is not good enough, because you don’t want to specify the path where your sources are currently, when you use the API, you can install the library into the system directories (/usr/local/lib, /usr/local/include and so on). Then, you wont need -I and -L. You’ll still need -l.

    You’ll need admin rights for that (be root, or use sudo).
    Consider using the “install” command.
    And “libtool”, if you want to build a shared object of your library.
    And the autotools (autoconf and automake).

    If you mean really anyone, and not just anyone on your computer, with this

    to anyone who is using the OS? (I am using Ubuntu.)

    then you’ll also need to build a source or binary package. And convince the Ubuntu maintainers to include it into their repository. Which will probably be difficult for yet another linked list library.

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

Sidebar

Related Questions

I am creating an Abstract Data Type, which create a doubly linked list (not
I want to created a generic sorted linked list. Thus I have an abstract
I want create module which update list of usb devices automatically (not only mass
I want to create an abstract class in C#. Currently, I have this class
Suppose I want to create an abstract class in Python with some methods to
I'm new to interfaces and abstract classes. I want to create a couple of
i want to create an abstract representation of an existing object. For this example
I want to create an abstract base class for all paramter-type classes to inherit
I want to create an abstract class in java that forces all its subclasses
I want to create an abstract Parameter class. public abstract class Parameter{ } I

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.