At 06:55 AM 12/8/2003, Marcel wrote:
Hi.

I have compiled a static library which uses the MSL library (specifically
the "strtol" function in "stdlib.h"). The compile-process and the linking
went fine.

Now I would like to link this new library to another application. But when I
build that application, it results in a link error, saying that the function
"strtol" which is referenced within my static library is undefined.

How can it be ? I linked my static library already, and it worked fine. Why
does it produce an error when I link it within another application ?

When linking a static library, unresolved symbols aren't reported, as a static library is just a collection of compiled code. You either need to link the MSL library code into your lib, or you need to require your library users to link to the MSL library as well. You should also verify that we actually provide a strtol function in MSL for Palm OS by trying it in a normal Palm OS application.


--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to