Equvilant of Windows Dllmain() in QNX

I posted the following note on qnxtp.porting and got no response. Hope I
have better luck here.


Hi, I am porting some DLLs from Windows to QNX. To dynamically load and
call the .so I use ‘dlopen()’ and ‘dlsym()’. But I need an entry point
to and an exit point from the .so, something equivalent to Windows DLL’s

‘DllMain()’. ( init() and fini() in Solaris )

Appreciate any advise.

Thanks,
-Beth

With gnu, I think you get the _init() and _fini() functions to use.
David Kuechenmeister
david.kuechenmeister@viasat.com

“Beth” <id@address.com> wrote in message
news:3CCD930A.A885A2AD@address.com

I posted the following note on qnxtp.porting and got no response. Hope I
have better luck here.


Hi, I am porting some DLLs from Windows to QNX. To dynamically load and
call the .so I use ‘dlopen()’ and ‘dlsym()’. But I need an entry point
to and an exit point from the .so, something equivalent to Windows DLL’s

‘DllMain()’. ( init() and fini() in Solaris )

Appreciate any advise.

Thanks,
-Beth