Mail Archives: djgpp/1996/07/19/19:54:54
Reply to message 1988523 from KAGEL AT DG1 DOT BLO on 07/19/96 7:54AM
>Compile your source to object files (*.o), use 'ar' (included with DJGPP) to
>build a library file named something like libMYLIB.a (the "lib" prefix and .a
>suffix are required), and run ranlib to build a symbol table in the library.
>
>
> gcc -c my*.c
> ar -r libmylib.a my*.o
> ranlib libmylib.a
> copy mylib.a \mylibdir
>
>You can then us libmylib like any other DJGPP library:
Why go through the grief of remembering to using ranlib? Just use -rvs
instead of -r when invoking ar. (-r = revise, v = verbose, s = create symbol
table). Saves a bit of typing, it seems to me. :)
John
- Raw text -