🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.objective-c
Article #405

Objective-C (GCC) Dynamic Loading of classes

#405
From: Thomas Orth
Date: Mon, 05 Feb 1996 00:00
25 lines
1913 bytes
Quick question...  I would like to dynamically load a class from disk
into a running executable.  What is the mechanism to do this under GCC ?
Does run-time class loading/linking work differently than under NeXTStep ?

I believe under NeXTStep, there's a objc_loadModules() call which is 
integral to the Objective-C run-time system.  This seems to be missing
from the Obj-C run-time supplied with the compiler.  I checked the FAQ
(mine's a little out-dated 8-) and couldn't see mention of this.

Thanks,

	T.

--
-------------------------------------------------------------------------------
Thomas Orth, M.Sc.                              Alberta Research Council
Research Officer                                3rd Floor, 6815 8th Street N.E.
Advanced Computing & Engineering                Calgary, Alberta T2E 7H7
Spatial Information Management and Analysis     Canada       
-------------------------------------------------------------------------------
TELEPHONE:     Office: (403) 297-7571              Fax:(403) 297-2339 
INTERNET:      mailto:orth@arc.ab.ca               http://www.arc.ab.ca
-------------------------------------------------------------------------------
    I'd be really surprised if my opinions reflected those of my employers.    
-------------------------------------------------------------------------------
Technical Details
Message-ID: <ORTH.96Feb5133542@capnhook.arc.ab.ca>
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,224fcea37aea16b8,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: 1111a3,224fcea37aea16b8,start
X-Google-Attributes: gid1111a3,public
From: orth@capnhook.arc.ab.ca (Thomas Orth)
Subject: Objective-C (GCC) Dynamic Loading of classes
Date: 1996/02/05
Message-ID: <ORTH.96Feb5133542@capnhook.arc.ab.ca>
X-Deja-AN: 138172789
distribution: global
organization: Alberta Research Council, Calgary Alberta, Canada
newsgroups: comp.lang.objective-c,gnu.gcc.help