loading shared library at runtime

bridged with qdn.public.qnxrtp.x86
Post Reply
mirtch

loading shared library at runtime

Post by mirtch » Wed Apr 09, 2003 9:12 am

Hi!

I try to load a shared library via dlopen() at runtime. Therefore I have
to set the linker-flag to "-rdynamic" on Linux. But on QNX6.2 this
linker-flag doesn't exist. What should I use instead to get it work?

here's my sample code I used:
http://linux4u.jinr.ru/usoft/WWW/www_de ... node7.html

thanks!
mirtch

Colin Burgess

Re: loading shared library at runtime

Post by Colin Burgess » Wed Apr 09, 2003 1:15 pm

-shared. Make sure you either pass -fpic or -shared to the compile
stages as well, or your shared library will cause a SIGSEGV when you
load it.

mirtch <mirtch@gmx.net> wrote:
Hi!

I try to load a shared library via dlopen() at runtime. Therefore I have
to set the linker-flag to "-rdynamic" on Linux. But on QNX6.2 this
linker-flag doesn't exist. What should I use instead to get it work?

here's my sample code I used:
http://linux4u.jinr.ru/usoft/WWW/www_de ... node7.html

thanks!
mirtch

--
cburgess@qnx.com

Post Reply

Return to “qdn.public.qnxrtp.x86”