Hello,
I am building a QNX filter driver, and am trying to link in some other
libraries that i have built, into the filter driver shared object. I can
specify the libraries in the common.mk file, the linker finds the
libraries, and the linker appears to exit successfully without error.
However, the size of my shared object that i create is zero. Does anyone
have any suggestions for linking in libraries into a driver?
Thanks.
Normally you would add a line like this…
LIBS+=pccardS
to link in the static version of the shared pccard lib.
chris
Steven Erickson <sojg@mediaone.net> wrote:
Hello,
I am building a QNX filter driver, and am trying to link in some other
libraries that i have built, into the filter driver shared object. I can
specify the libraries in the common.mk file, the linker finds the
libraries, and the linker appears to exit successfully without error.
However, the size of my shared object that i create is zero. Does anyone
have any suggestions for linking in libraries into a driver?
Thanks.
–
cdm@qnx.com > “The faster I go, the behinder I get.”
Chris McKillop – Lewis Carroll –
Software Engineer, QSSL
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Thanks for the reply.
Ok now the million dollar question. What is the difference between (for
example):
LIBS += drvrS
and
LIBS += drvr
I notice there are two versions of this driver
…/lib/drvrS.a and
…/libdrvr.a
All of the libs that i have built that i wish to link-in do not have the “S”
appended to the end. Do i need to build libs in a certain way in order for
them to statically link with an .so file.
In my makefile i specify all “non S” versions in the LIBS and the linker
resolves all of the libs, but doesn’t generate a valid .so file. However,
there are no linker errors either.
Any additional insight into my problem would be appeciated.
Steve.
“Chris McKillop” <cdm@qnx.com> wrote in message
news:9h7vv3$jrn$6@nntp.qnx.com…
Normally you would add a line like this…
LIBS+=pccardS
to link in the static version of the shared pccard lib.
chris
Steven Erickson <> sojg@mediaone.net> > wrote:
Hello,
I am building a QNX filter driver, and am trying to link in some other
libraries that i have built, into the filter driver shared object. I can
specify the libraries in the common.mk file, the linker finds the
libraries, and the linker appears to exit successfully without error.
However, the size of my shared object that i create is zero. Does anyone
have any suggestions for linking in libraries into a driver?
Thanks.
\
cdm@qnx.com > “The faster I go, the behinder I get.”
Chris McKillop – Lewis Carroll –
Software Engineer, QSSL