This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

undefined symbol


I have created a shared library which contains a function called
_mallocdb. I wrote a small test program which makes a call to it and it
compiled and linked correctly. When I try to run it I get the error;

./test: error in loading shared libraries
/home/lcl/liblcld.so: undefined symbol: _mallocdb__FUiiPc

I tried checking the symbols of the library;

> nm liblcld.so | grep _mallocdb

00002a0c T _mallocdb__FUiiPCc
	 U _mallocdb__FUiiPc

Anyone have any ideas? Is there something I have to do to explicitly
export certain function? Is there a document which explains this stuff
in painful detail?

Thanks,

-Ulrich
-- 
/*****************************************************
 * Ulrich Czekalla                                   *
 * University of Toronto                             *
 * Software Engineering       Bachelor of Commerce   *
 * g5ulczek@cdf.utoronto.ca                          *
 *****************************************************/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]