Static Libs

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.

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/