I've got:If you compile that way, your compiler simply knows that linking is done during runtime. And during runtime your system (or more precisely your linker) has to know where to find this library.
LIBS = /root/xerces/lib/libxerces-c.so.22.0 -lsupc++ -lstdc++
$(myDLL): $(OBJS) $(CC) -shared -o $(myDLL) $(OBJS) $(LIBS)
obviously there is more to it....but I thought that did include the standard libraries that were necessary? No?
Thanks!
Try the following:
with bash: export LD_LIBRARY_PATH=/root/xerces/lib
with tcsh: setenv LD_LIBRARY_PATH /root/xerces/lib
Another solution is to copy those three files found in /root/xerces/lib to /usr/lib, or wherever your system's libraries are stored at.
A third solution: See also /etc/ld.so.conf and 'man ld.so.conf'. In this file you can list directories, where your runtime linker searches in. After having added a new directory (for example your /root/xerces/lib) you have to run 'ldconfig' as root (without any Options).
greets Boris
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
