Thread: Compiling a library

  1. #1
    Registered User
    Join Date
    Aug 2009

    Compiling a library

    I wonder how to compile a program as a library that other programs can use by including a .h file (in Linux and using GCC)?

  2. #2
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    I made .a by setting the compiler devcpp as output lib. All the modules together at compile time. Also had separate dll file for prog. with stuff not in the .a lib. meow using .h files specified use dll or linklib depending on function.

    not sure about linux

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Global variable in shared library
    By krock923 in forum C Programming
    Replies: 5
    Last Post: 01-11-2008, 03:56 PM
  2. my free c++ library
    By jinhao in forum A Brief History of
    Replies: 0
    Last Post: 11-01-2007, 10:00 PM
  3. Replies: 4
    Last Post: 09-02-2007, 08:47 PM
  4. Compiling Library Into Program.
    By Shogun in forum Linux Programming
    Replies: 10
    Last Post: 11-30-2004, 12:29 PM
  5. Replies: 4
    Last Post: 11-12-2002, 05:26 AM