This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]