Solved

Linker Error - Table Limit Exceeded

Posted on 1998-01-10
2
556 Views
Last Modified: 2013-12-26
null
0
Comment
Question by:keith_mc
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
Comment Utility
The problem is when you export a class, then all of its member functions are exported. The best thing to do is not to export an entire class, but to export the member functions directly. However, sometimes this won't work because if the base class has been exported, then your derived class has to be exported too. Which version of the compiler are you using? If you are using either BC++ 4.5 or BC++ 5.x, then your program size is extremely large before getting this problem.
0
 

Author Comment

by:keith_mc
Comment Utility
Well, um, I'm still using 3.1.  I've got 4.?, I just haven't made the move yet.  With a little testing, I found that the _CLASSDEF macro that is used to typedef pointers to a class was also exporting the class.  I removed this macro from each of my classes and added "typedef classname _FAR * pclassname" and the export problem was solved.  Thanks for the help.  Your suggestions are valid.  However, it doesn't seem to be true that the derived classes are exported if their base class is.  This may have something to do with the older version.  (If so, I like it).
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

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

11 Experts available now in Live!

Get 1:1 Help Now