This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Load external "modules" at runtime
- From: "Rupert Wood" <me at rupey dot net>
- To: "'Robert Spanton'" <rob at xgoat dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 9 Jul 2002 11:16:52 +0100
- Subject: RE: Load external "modules" at runtime
Robert Spanton wrote:
> I want to write some code that allows itself to load "modules"
> during runtime, to provide extra features - can anybody point me in
> the right direction?
On Unix-alikes, you probably want dlopen() and dlsym(). (Although I've
never used these myself.)
For Windows, you probably want LoadLibrary() and GetProcAddress().
Rup.