Solved

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

Posted on 1997-03-21
1
308 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now