# > cc -O -DDEBUG dig.c -L`pwd` -lresolv list.o -o dig
# > ld: Undefined symbol
# > _dlopen
# > _dlclose
# > _dlsym
# > __mbstowcs_xccs
# > __mbtowc_xccs
# > __wcstombs_xccs
# > __wctomb_xccs
#
# You need to add the -ldl (dynamic loading libs) to the cc
Doing that makes _that_ cc work, but who wants to add "-ldl" to every
cc in every Makefile on their system?
Adding "-ldl" to the "ld" step of building the shared library, as I
described in my previous message, solves the problem without requiring
you to tweak every Makefile on your system.
- -Brent
- --
Brent Chapman Great Circle Associates
Brent @
GreatCircle .
COM 1057 West Dana Street
+1 415 962 0841 Mountain View, CA 94041
------- End of Forwarded Message
|
|