Static Libs

bridged with qdn.public.porting
Post Reply
Scott A.

Static Libs

Post by Scott A. » Tue Apr 15, 2003 5:41 pm

I have a static library that contains references to functions located in
another static library, and I'm having trouble with compiling the two into
separate libraries. The libs are our old QNX 4 libraries that we are
converting over to 6. I just can't get them to work as static libraries,
everything seems to compile fine when they are shared. Does anyone have any
advice on how to do this? or will I be forced to put these into one large
library?

--
Scott A.

Chris McKillop

Re: Static Libs

Post by Chris McKillop » Wed Apr 16, 2003 3:27 am

You might have to give the lib twice on the command line.

-la -lb -la

Kinda like that. GCC doesn't keep a list of all symbols from all libs.

chris


Scott A. <scott.anderson@fkilogistex.com> wrote:
I have a static library that contains references to functions located in
another static library, and I'm having trouble with compiling the two into
separate libraries. The libs are our old QNX 4 libraries that we are
converting over to 6. I just can't get them to work as static libraries,
everything seems to compile fine when they are shared. Does anyone have any
advice on how to do this? or will I be forced to put these into one large
library?

--
Scott A.



--
Chris McKillop <cdm@qnx.com> "The faster I go, the behinder I get."
Software Engineer, QSSL -- Lewis Carroll --
http://qnx.wox.org/

Post Reply

Return to “qdn.public.porting”