Debugging library incompatibilty
Carl Dichter
dichter at soleil.sps.mot.com
Fri Jan 11 03:22:27 AEST 1991
Are there only a few library functions you wish to "fix"?
If so, consider making a separate library to replace those functions.
By have the cc command search your replacement library
you can pick up your version of the functions instead. You shouldn't
need a new header file because you are writing drop-in replacements.
To use your own libraries:
Use the "-L(directory)" of "cc" to tell it the directory your
library is in
Use the "-l(suffix)" to tell it the suffix of your library name.
For example, if you build a library "libc_new.a" in "/usr/local/lib",
your "cc" might look like this:
cc myprog.c -o myprog -L/usr/local/lib -lc_new
Have fun.
Carl R. Dichter
Staff Software Engineer/Scientist
Email: dichter at soleil.sps.mot.com
More information about the Comp.unix.internals
mailing list