Project

General

Profile

Actions

Feature #38

open

Need ability to create static and dynamic shared libraries.

Added by Kolan Sh over 12 years ago. Updated over 7 years ago.

Status:
New
Priority:
Freezed
Assignee:
Target version:
Start date:
01/19/2012
Due date:
% Done:

0%

Estimated time:

Description

Example:

CC=cc
LIBNAME=moderr
LIBREV=1
LIBVER=1.0.0
TEST=test
rm *.out *.o *.a *.0 *.1 test_* *.so
# --- dynamic ---
$CC -c -fPIC $LIBNAME.c -o $LIBNAME.o
$CC -shared -Wl,-soname,lib${LIBNAME}.so.${LIBREV} -o lib${LIBNAME}.so.$LIBVER $LIBNAME.o
ldconfig -n .
ln -s libmoderr.so.1 libmoderr.so
$CC $TEST.c -L. -lmoderr -o ${TEST}_dynamic
# --- static ---
ar rcs lib${LIBNAME}.a $LIBNAME.o
$CC $TEST.c -static -L. -lmoderr -o ${TEST}_static

Actions #2

Updated by Kolan Sh over 12 years ago

  • Target version set to 2.0.0
Actions #3

Updated by Kolan Sh about 12 years ago

  • Target version changed from 2.0.0 to 3.0.0
Actions #4

Updated by Kolan Sh over 10 years ago

  • Priority changed from High to Low
Actions #5

Updated by Kolan Sh almost 10 years ago

  • Status changed from 5 to New
  • % Done changed from 10 to 0
Actions #6

Updated by Kolan Sh over 7 years ago

  • Priority changed from Low to Freezed
Actions

Also available in: Atom PDF