C/C++ Compiler (cl.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.
Additional Global Options
◄Up► ◄Contents► ◄Index► ◄Back►
─────Programmer's WorkBench─────────────────────────────────────────────────
The Additional Global Options dialog box provides the following
options for all project builds.
Window's Entry/Exit Code
For protected-mode Windows applications, optimize the
entry/exit code of all far functions explicitly marked
as __export:
None No entry/exit code selected
Protected-Mode Application Equivalent to specifying /GA
Protected-Mode DLL Equivalent to specifying /GD
See: ◄Optimize Entry/Exit Code for Protected-Mode Windows►
Language
Choose either ANSI C compatibilty or Microsoft extensions:
Option Action
ANSI C Disables Microsoft language extensions. Use
this option when you are porting a program to
other environments. The command-line
equivalent is /Za.
MS Extensions Enables Microsoft language extensions. The
command-line equivalent is /Ze, the default.
See: ◄Language Extension Details►
Use MFC Libraries (C++ only)
Use Microsoft Foundation Class Libraries; this option defines
_DEBUG in the Additional Debug Options dialog box and adds
mAFXCR.LIB to the Additional Debug/Release Libraries in the
LINK Option menu (m is the default memory model). To remove
_DEBUG, once it is defined, delete it from the Defines text
box in the Additional Debug Options dialog box.
◄MFC Libraries►
Use Precompiled Header
Use a precompiled header for all files in the project, based
on the first source file in the project file list.
See: ◄Using Precompiled Headers in PWB►
Include File
Specifies the last include file to be contained in the
precompiled header (.PCH) file. When you turn on the Use
Precompiled Header option, you must specify the terminating
include file. The .PCH file has the same base name as the
specified include file.
Enable Function Level Linking
Enable linking on a function-by-function basis. Equivalent to
specifying /Gy.
See: ◄Controlling Linker Access to Individual Functions►
Defines
Defines preprocessor symbols. Separate multiple symbols with a
space or comma. Use the Defines text box to define symbols
that maintain the same value for all builds. Equivalent to
specifying /D<symbol>.
See: ◄Defining Constants and Macros►
Additional Include Paths
Specify additional directories in which to search for include
files.
See: ◄Include-File Options►
Additional Options
Specify additional "global" CL options not listed in the C/C++
Compiler Options dialog box in this text box. Global options
are options that are used for all builds.
-♦-