Article View: comp.sys.ibm.pc.programmer
Article #667MS LINK & MSC5.1 problems
From: Richard Sitze
Date: Tue, 29 May 1990 16:19
Date: Tue, 29 May 1990 16:19
45 lines
1798 bytes
1798 bytes
I'm getting
LINK : error L2041: stack plus data exceed 64K
for a program writting in Microsoft C 5.1. The program consists of a large
number of seperate object files & libraries. The object files have all
been compiled with the following flags:
/Zl /W3 /Oailsp /AL /J # optimizations, large model
I've also tried (for the object files but not the libraries):
/Zl /W3 /Oailsp /AL /Aw /J
in an attempt to locate the stack segment by itself. I'm not sure I
correctly understand the purpose of the /Aw flag.. The files are all linked
with the following flags to the linker:
/NOI /F /PAC /ST:8196
So, the questions are:
1) anyway to convince the linker to create a seperate stack segment?
2) any nice easy fix to this?
3) any difficult fix to this?
4) any helpful/constructive comments of any sort?
I'm stumped, tired, frustrated, and going home. Any help would be
greatly appreciated. BTW, please ignore the 'path' and 'from'
field in the header, they are the result of a screwy system here
on campus. I'm quite able to read news, but any email should be
sent to
sitze@nmsu.edu
Thanks in advance,
<ras>
--
+--------------------------------------+
| Richard A. Sitze |
| sitze@nmsu.edu phone: 646-6228 |
+--------------------------------------+
Technical Details
Message-ID:
<SITZE.90May29101947@teewi.nmsu.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!lanl!opus!sitzeShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!lanl!opus!sitze From: sitze@nmsu.edu (Richard Sitze) Newsgroups: comp.sys.ibm.pc.programmer Subject: MS LINK & MSC5.1 problems Message-ID: <SITZE.90May29101947@teewi.nmsu.edu> Date: 29 May 90 16:19:47 GMT Sender: news@nmsu.edu Distribution: comp Organization: NMSU Computer Science Lines: 45