This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Status Update : How to create objects of a class defined in .so file?
- To: gcc-help at gcc dot gnu dot org <gcc-help at gcc dot gnu dot org>
- Subject: Status Update : How to create objects of a class defined in .so file?
- From: "Rajesh Lolam" <rajeshlolam at rediffmail dot com>
- Date: 6 Dec 2000 12:05:48 -0000
Hi all,
At present, I'm trying to solve the problem (of creating object of a class defined in .so file) with a work-around.
For this I would be writing a wrapper function which will create objects of the class. Then the .so file will be created which will include both (viz. the class of which the object is to be created and the wraper function).
It is very simple to call plain function defined in .so file. The same way the wrapper function will be called (using dlfcn.h functions).
Hope that it it works.
Bye,
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/