Compiling a library

This is a discussion on Compiling a library within the C++ Programming forums, part of the General Programming Boards category; I wonder how to compile a program as a library that other programs can use by including a .h file ...

  1. #1
    MTK
    MTK is offline
    Registered User
    Join Date
    Aug 2009
    Posts
    198

    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
    Posts
    638
    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 Cprogramming.com
    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

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