Markus Loffler <firstname.lastname@example.org> wrote:
All functions that are used by your shared library baselib.so must be in
shared libraries as well.
This is not true. The shared library may called non-shared functions
in your executable.
Did you use -Bdynamic for your linker line, to instruct the linker to only
use shared libaries?
This is redundant, since the linker always looks for .so versions of libraries
before .a, unless you pass a -Bstatic. You would need a -Bdynamic to
ask the linker to look for .so libraries again after that.
The SIGSEGV’s even before main() is called usually indicates that not all
called is compiled with -shared
This is correct. I would check that you are not linking your shared
object against any non-shared objects/libraries.
“Andrew Lighten” <> email@example.com> > wrote in message
news:> firstname.lastname@example.org> …
I’ve had trouble getting shared libraries to work properly using QNX6
I’m compiling and linking my library with the “-shared” option, and it
I’m then linking my application specifying “baselib.so” on the link
command line. It links without error, but immediately SIGSEGV’s when
If I compile the library and use “ar rcs …” to build a “baselib.a”
and link against that, everything runs perfectly.
I’m sure this is an easy one. Can anyone point me in the right