Remember me

Lost Password?

Register now!
Who's Online
64 user(s) are online (46 user(s) are browsing Forums)

Members: 3
Guests: 61

peterhut, sinisrus, Spectre660, more...
Support us!
Recent OS4 Files
Report message:*

Re: library auto init code

Subject: Re: library auto init code
by salass00 on 2019/4/11 16:35:04


Include the relevant <proto/#?.h> to get the extern definitions of the library base and interface globals.

Make sure that you don't define variables with the same name yourself (like billyfish does) and that you don't define __NOLIBBASE__ or __NOGLOBALIFACE__.

If you follow the above then any use of the library interface like "ISomeLib->SomeFunc(blah)" should cause the relevant interface constructor to be used.

You also need to be using standard startup code for it to work.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project