Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
51 user(s) are online (40 user(s) are browsing Forums)

Members: 0
Guests: 51

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: library auto init code

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

@Hans

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