From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Snopek To: gcc-help@gcc.gnu.org Subject: Shared Libraries Date: Sat, 08 Jul 2000 11:10:00 -0000 Message-id: <39676DEB.985DF973@execpc.com> X-SW-Source: 2000-07/msg00043.html I have been working on a project that involves two shared libraries being statically loaded by a binary file. All the objects in the shared library were compiled using the -fPIC and linked with -shared. Then in linking the binary, I just used the full path and name of the shared libraries as argument. As far as I know this is standard proceedure but I am not sure because I picked it up from example. Suddenly, three days ago, I tryed to recompile all of my source including the libraries, and when I got to linking the binary it gave me these three errors for every class that is referenced in the shared libraries: undefined reference to class_name virtual table undefined reference to class_name type_info function undefined reference to class_name type_info node The strangest part is that I didn't change anything in the shared libraries, and made minimal changes to the binary (which I undid in hopes of maybe getting it to work again). I am using RedHat 6.1 on a i386, all the source is in C++. I would appreciate any help that any one can provide!! - David Snopek