C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Reducing Text-Only Programs
                                             Up Contents Index Back
─────C/C++ Language─────────────────────────────────────────────────────────
 
     You can reduce the executable-file size by about 8K or 10K for a
     program that uses only the text-mode functions from GRAPHICS.LIB.
 
     To do so, link your program with TXTONLY.OBJ. If you explicitly
     name GRAPHICS.LIB in the compile or link command, place it after
     TXTONLY.OBJ on the command line. Use the /NOE option to avoid
     multiple symbol definitions. For example:
 
          CL TEST.C NOGRAPH /LINK [ GRAPHICS.LIB ] /NOE
 
     A program built with TXTONLY.OBJ cannot use graphics modes or
     graphics functions. It cannot try to change the palette. If the
     program tries to enter a graphics mode, _setvideomode will return
     an error.
                                    -♦-