From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rajesh Lolam" To: gcc-help@gcc.gnu.org Subject: [A] It works! : How to create objects of a class defined in .so file? Date: Thu, 07 Dec 2000 06:16:00 -0000 Message-id: <20001207140759.3268.qmail@mailweb20.rediffmail.com> X-SW-Source: 2000-12/msg00033.html 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. ========================================================= _____________________________________________________ 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/