Creating a lib (HELP)

This is a discussion on Creating a lib (HELP) within the Linux Programming forums, part of the Platform Specific Boards category; Hi Everyone... Can someone tell me how to create a lib please? I have a file filled with fuctions (of ...

  1. #1
    nuno@enterprise$ rm -rf *
    Join Date
    Dec 2005
    Location
    Near Paris
    Posts
    2

    Creating a lib (HELP)

    Hi Everyone...
    Can someone tell me how to create a lib please?

    I have a file filled with fuctions (of course there is not a main)!!!

    how can i make a ".so" out of this and how can i use the ".so", or how should i?

    I'm a C experienced student, but sometimes, it's just one of those days!!!

    Thanks

    Nuno

  2. #2
    Sr. Software Engineer filker0's Avatar
    Join Date
    Sep 2005
    Location
    West Virginia
    Posts
    235
    There are libraries and there are libraries.

    ar is used to make standard (static link) libraries. Those have .a extensions on Unix/Linux. Creating a dynamic (or shared) library (a .so file) is a different kettle of fish.

    Rather than trying to explain it all to you from memory, I did a Google search, and came up with:
    this bit on shared libraries and this bit on static libraries.

    Knock yourself out.
    Insert obnoxious but pithy remark here

  3. #3
    nuno@enterprise$ rm -rf *
    Join Date
    Dec 2005
    Location
    Near Paris
    Posts
    2
    thanks man!!! my great problem was to get the correct expressions so that i could "google-my-self" in to...
    I kept searching for ".so" with another words...


    Thanks man... thanks a lot!!!


    Nuno

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. using VC6 link VC7 static lib error
    By George2 in forum C++ Programming
    Replies: 5
    Last Post: 06-29-2006, 10:58 PM
  3. Creating a LIB
    By X PaYnE X in forum Windows Programming
    Replies: 9
    Last Post: 01-08-2004, 11:10 AM
  4. creating a lib file?
    By Devil Panther in forum C Programming
    Replies: 8
    Last Post: 11-01-2003, 07:18 AM
  5. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 08:19 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21