At 05:00 PM 1/11/00 -0500, Dave Lippincott wrote:
>>
>>Link Error   : __RuntimeModule__: '__Startup__' referenced from
>>'__DummyStartup__' is undefined.
>>
>>How can I get rid of this problem? Can I get rid of this problem? or am I
>>restricted to use C only for Shared libraries...
>>
>
>If I remember correctly, you can't use C++ to create a shared library.
>

*bzzt*

#ifdef __cplusplus
extern "C" {
#endif /*__cplusplus*/
Err  __Startup__(UInt refNum, SysLibTblEntryPtr entryP);
#ifdef __cplusplus
}
#endif /*__cplusplus*/

Err __Startup__(UInt refNum, SysLibTblEntryPtr entryP)
{
    entryP->dispatchTblP = /* this is up to you -
                                   I'm sure someone can supply an example of how to 
build a dispatch table
                                */
    return 0;
}


Reply via email to