This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
[A] It works! : 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: [A] It works! : How to create objects of a class defined in .so file?
- From: "Rajesh Lolam" <rajeshlolam at rediffmail dot com>
- Date: 7 Dec 2000 14:07:59 -0000
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/