From: Brian G. <ge...@ai...> - 2004-07-26 17:43:57
|
On Mon, 26 Jul 2004, Reed Hedges wrote: > On Jul 25, 2004, at 9:09 PM, ahoward wrote: > > Alternatively, if anyone knows a generic fix for this, I would > > be keen to hear it. > > What I do for plugins is have the application (player in this case) > call a certain C function in the plugin after loading it, e.g. "void > player_driver_init(...)". That is a superb idea, which we should follow. But I have a question: How does the loader behave if you provide multiple definitions of a symbol in different libs? For example, I load module 1, which defines player_driver_init(), and I call player_driver_init(). Then I load module 2, which differently defines player_driver_init(), and I call it again. Does the second definition seamlessly overwrite the first? brian. -- Brian P. Gerkey ge...@ai... Stanford AI Lab http://ai.stanford.edu/~gerkey |