This is the mail archive of the gcc-help@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]

[A] It works! : How to create objects of a class defined in .so file?


Hi all,
	When I started the work, the issues were
1> How to create objects of a class defined in .so file?
2> How to call methods of a class defined in .so file?
	It is possible with (what I think as) a work-around.
	One has to write a wrapper-function, which will 
create objects of a class (which you want to define in
the .so file). The same way you can access the class
methods. After doing this, encapsulate this wrapper
function in the same .so file. 
	The wrapper function can be dynamically linked
using dlfcn.h family functions.
	This way, the objects can be created with the
help of Wrapper-function.
Regards,
Rajesh.
<rajeshlolam@rediffmail.com>
=========================================================



_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com

Participate in crazy auctions at http://auctions.rediff.com/auctions/




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