Re: shared library - undefined symbols

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Anitha Boyapati writes:
 > 
 >  Please let me know if I am missing something.It is important for
 >  me to get through this immediately :-(
 > 
 >  -------------------------------------------
 > 
 >  Sample Code :
 > 
 > 	class X : class baseX {
 > 	...
 > 	};
 > 
 > 	class Y : class baseY {
 > 	...
 > 	};
 > //End of Code
 > 
 >  g++ -c -shared -o mem.so X.o Y.o
 > 
 >  ( This created mem.so )
 > 
 >  When used with dlopen as :
 > 
 >  handle = dlopen ("mem.so", RTLD_LAZY)
 >  
 >  The above statement throws error saying undefined reference to baseX
 >  and BaseY!	

No kidding.  Where are baseX and BaseY defined?

Andrew.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux