Solved

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

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
XCode crashes while uploading to app store. 5 262
How to get time_t value that is a week old 6 168
Adjust Mfcapp 29 166
Raspberry Pi 3 to send text message 9 107
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

816 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

7 Experts available now in Live!

Get 1:1 Help Now