I'm trying my hand at writing a multi-threaded program using shared
libraries. It's actually a plug-in module for another application and it's
required to be dynamically linked. To test out my plug-in I wrote a small
wrapper program. When I run that program I get bunches of unresolved symbols
in the system libraries.
Simplified, the build process looks like:
cc -g -pthread -D_REENTRANT -c try.c
cc -shared -o try try.o
and the results I get are:
30538:./try: /sbin/loader: Error: unresolvable symbol in /usr/shlib/libc.so:
__ldr_data
30538:./try: /sbin/loader: Error: unresolvable symbol in /usr/shlib/libc.so:
_end
30538:./try: /sbin/loader: Error: unresolvable symbol in /usr/shlib/libc.so:
__Argc
30538:./try: /sbin/loader: Error: unresolvable symbol in /usr/shlib/libc.so:
__Argv
30538:./try: /sbin/loader: Error: unresolvable symbol in
/usr/shlib/libpthread.so: __Argv
30538:./try: /sbin/loader: Fatal Error: this executable has unresolvable
symbols
I'm not (intentionally) using Argv or Argc anywhere in my code. Can anybody
help?
--
_______________________________________________________________________
Rick Beebe (203) 785-6416
Manager, Systems & Network Engineering FAX: (203) 785-3606
ITS-Med Client & Technology Services Richard.Beebe_at_yale.edu
Yale University School of Medicine
P.O. Box 208078, New Haven, CT 06520-8078
_______________________________________________________________________
Received on Mon Jan 18 1999 - 20:49:51 NZDT