I searched the CodeWarrior FAQ, and couldn't find an answer to my problem. Maybe
this
has been discussed in palm forum, but the egroup archive search doesn't function
correctly
(I couldn't retrive the next page of search results). Anyway, I created an
array of function
pointers in my palm SHARED LIBRARY (the code model is set to small):
PFCN FuncArray[5] = { f1, f2, f3, f4, f5 }
Compiled OK, but when I got the linker error:
illegal single-segment 32-bit reference to function f1
(same for all the funciton references)
How can I fix the problem? Note that this is when I build shared library, and
if I do not build as a
shared library (with code model=smart), then I do not get the error.
------------------
Jyh-Herng Chow, DBTI, D140, IBM Santa Teresa Lab
Phone: 408-463-2601. T/L: 543-2601. Fax: 408-463-3362.
Internet: [EMAIL PROTECTED] http://xyzzy.stl.ibm.com/chowjh/