Solved

Help With Microsoft C/C++ 7.0 linking stack problem

Posted on 1997-03-21
1
319 Views
Last Modified: 2011-09-20
Hello i am linking my program and its library plus some other assembly with the following line in a dos session under windows for microsoft c/c++ 7.0:

link /ST:8192/CO texdemo.obj+fpdiv.obj+fpmul.obj,,,ben.lib,,

and it gives me :

LINK:  fatal error L2041: stack plus data exceed 64k

how can i fix this??? Is there something to do to the /ST:8192 to make this work?? Is anyone else familiar with this?
Thanx in advance for helping me
I can be reached at:   benco@gisco.net
0
Comment
Question by:Doug8
1 Comment
 
LVL 4

Accepted Solution

by:
emmons earned 50 total points
ID: 1249612
You are giving at an 8K stack. Do you need this much? Try cutting it on half (/ST:4096).
You should look at the map to determine the total size of your data segment so that you can see how much smaller you need to make the stack.
You might also concider compiling your program in another memory model.
Keep in mind that no single data item can be greater than 64K in any model other than HUGE.
It sounds like you are probably using small model now and need to convert to COMPACT.
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question