Or if using CW, change the "Code Model:" to "Smart" instead of "Small".
This will tell the compiler to use 32 bit jumps where needed. It's a lot
easier to use than jump islands, but results in slightly bloated code.
Regards,
Alan Ingleby
Systems Developer
ProfitLink Consulting Pty Ltd
309 Burwood Road
Hawthorn
Victoria 3122
Australia
"Lundberg, Henrik at AFS" <[EMAIL PROTECTED]> wrote in message
news:52792@palm-dev-forum...
>
> A 16bit relative jump can only jump 32K of address space. You are probably
> trying to call GetCountryName from a code outside that range. Put a call
> island within range of the call and the callee.
>
> Example:
> // The call
> far_GetCountryName(countryName);
>
> // Less than 32K of code/data
>
> // Jump island for GetCountryName
> void far_GetCountryName(const char* cn)
> {
> GetCountryName(cn);
> }
>
> // Less than 32K of code/data
>
> // The real method
> void GetCountryName(const char* cn)
> {
> }
>
> Look into your link order and and see if you can rearrange your sources to
> eliminate calls made over 32K.
>
> BTW, you should be able to use the same name for the jump island and the
> real method (i.e. get rid of this far_ stuff) but I'm not a C programmer
so
> that's up to other players.
> /Henrik
>
>
> -----Original Message-----
> From: Edwin Hoh [mailto:[EMAIL PROTECTED]]
> Sent: den 13 juni 2001 12:51
> To: Palm Developer Forum
> Subject: Link Error?
>
>
>
>
> hi,
> I wrote an application that compiles without error. But when I attempt
> to make a prc file, it prompts a Link Error. The error looks something
like
> this :
>
> Link Error : File.cpp: 'Person_change()' 16-bit code reference to
> 'CTable::GetCountryName(const char*)' is out of range.
>
> Can anybody suggest anything at all that may cause this error? I'm
> totally dumbfounded. Thanks.
>
> Ed
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/