Project

General

Profile

Feature #38

Need ability to create static and dynamic shared libraries.

Added by Kolan Sh almost 8 years ago. Updated about 3 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

History

#2 Updated by Kolan Sh almost 8 years ago

  • Target version set to 2.0.0

#3 Updated by Kolan Sh over 7 years ago

  • Target version changed from 2.0.0 to 3.0.0

#4 Updated by Kolan Sh almost 6 years ago

  • Priority changed from High to Low

#5 Updated by Kolan Sh over 5 years ago

  • Status changed from 5 to New
  • % Done changed from 10 to 0

#6 Updated by Kolan Sh about 3 years ago

  • Priority changed from Low to Freezed

Also available in: Atom PDF