TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALL
from: ANTHONY TIBBS
date: 1997-12-06 20:07:00
subject: Very large executables with BC45?

--> Note:
Copied (from: C_ECHO) by Anthony Tibbs using timEd.
Hello All!
I'm using Borland C++ 4.5, and the following code is resulting in a 35k 
executable:
int main (void)
{
int t=1;
   while (t)
   {
      t = getch();
      if (!t)
      {
         t = getch();
         printf ("Extended key : 00h, %-2.2Xh\n", t);
      }
      else
         printf ("Standard key : %-2.2Xh\n", t);
      if (t == 0x1B)
         t = 0;
   }
   return 0;
}
If I look at the executable, there are references to "xalloc", "xmsg", 
"string", "Bad_type", "Bad_cast", "typeinfo", "string::lengtherror", 
"TReference", "TString", among others.
The strange part is this:  All of these "messages" are located *before* the 
rest of the data for the program, i.e. they are scattered about amongst all 
of the program code.  The other weird thing is that this is a .C program, and 
NOT a .CPP (C++) program, so where the heck is "string::lengtherror", etc. 
coming from?
Take care,
Anthony
--- timEd/B8
---------------
* Origin: The Tibbs' Point - Ottawa, ON - Private (1:163/215.38)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.