🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42503

Dynamic linking in g++?

#42503
From: Huw Lynch
Date: Wed, 29 Nov 1995 00:00
14 lines
964 bytes
Has any one ever experimented with dynamically loading c++ objects?

I've used system calls such as dlopen() etc to dynamically load shared objects
and call functions defined within them but I've always only called stand
alone functions; ie never methods of an object.

What I'd like to do is define a virtual base class and then create new 
derrived classes that can be loaded at run time.

Any ideas on whether it would work, how to do it, what restrictions
would be implied, and how portable it would be?

Thanks,
Huw Lynch
Technical Details
Message-ID: <gnusenet49gtmb$cvc@info.curtin.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,892002fcbe7320c8,start
X-Google-Attributes: gid11318c,public
From: huw@cs.curtin.EDU.AU (Huw Lynch)
Subject: Dynamic linking in g++?
Date: 1995/11/29
Message-ID: <gnusenet49gtmb$cvc@info.curtin.edu.au>
X-Deja-AN: 120414697
distribution: gnu
sender: daemon@cis.ohio-state.edu
organization: Curtin University of Technology
newsgroups: gnu.gcc.help