Article View: comp.windows.ms
Article #13375Re: multiple SEGMENTS, i need to split up my code
From: Charles I. Ganimian Jr.
Date: Mon, 12 Dec 1988 19:58
Date: Mon, 12 Dec 1988 19:58
35 lines
1783 bytes
1783 bytes
>> with multiple SEGMENTS in a small model program.
>> I need to split my app up into different segments but
>> the C runtime functions used in the code cause linker
>> errors (L2003 intersegment self-relative fixup) how can
>> I resolve these errors so my app can be split up into
>
>When I encountered this error message, I found I was making function
>calls across object files without using the FAR keyword. If you're
>able to make function calls within the same object file, but not
>across different object files, then you probably have the same
>problem. You should should declare the function as FAR in both its
>definition object file and in the object file where it is being used.
>
>try the Petzold book; I've found it an indispensable reference for
>
>
>Vivek
thanks, I knew about making my functions FAR and I will do
that but the real problem is the C runtime library functions.
I need to use sprintf, atoi, etc and these i cannot modify
in a rational manner so that they are far functions. What can
I do ... I want to stay with the small model and I am at
a point where I can't move forward until I can fix this
HELP!!!
thanks
charlie g
NOTE: this article is long winded so news would let me post a follow-up
with enough info to be useful...
Technical Details
Message-ID:
<14484@genrad.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!mit-eddie!genrad!cigReferences:
<14349@genrad.UUCP> <8392@bloom-beacon.MIT.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!mit-eddie!genrad!cig From: cig@genrad.UUCP (Charles I. Ganimian Jr.) Newsgroups: comp.windows.ms Subject: Re: multiple SEGMENTS, i need to split up my code Keywords: segments Message-ID: <14484@genrad.UUCP> Date: 12 Dec 88 19:58:27 GMT References: <14349@genrad.UUCP> <8392@bloom-beacon.MIT.EDU> Reply-To: cig@genrad.UUCP (Charles I. Ganimian Jr.) Organization: GenRad, Inc., Concord, Mass. Lines: 35