How to make a auto-call function when create a 51 library

I create a library, which needs some initialization. Currently i just provide a function mylib_init, and tells the users of my lib, call it before use other functions of my lib. but it seems somewhat stupid. so, is there any way to make mylib_init to be called automatically when my lib is used?

More questions in this forum