Before you build, you need to decide what type of program you are building and whether you want to create a version of it that can be debugged. In the Project dialog box (see Figure 9.5), you can set the Program Type and the Build Mode. Each of these choices sets default options for linking.
·To examine these default settings:
1.From the Options menu, choose Project. The Project dialog box appears.
2.From the Customize Build Options box, choose the Linker button. The Customize Linker Options dialog box appears. (See Figure 9.3.)
For a description of the options shown in the Customize Linker Options box, see the next section, “Specifying Options for Linking.”
You can build a DOS program, a Windows application or DLL, or a QuickWin program. The program type determines several defaults for options and tells the linker which default library to use and whether to expect a .DEF file.
·To choose the type of program you wish to build:
1.From the Options menu, choose Project. The Project dialog box appears. (See Figure 9.5.)
2.In the Program Type box, choose the appropriate option.
You can build a version of your program that is ready to be debugged, or you can build a version that does not contain debugging information. When you tell the Graphical Development Environment to build your program, the sets of options it passes to the linker depend on whether you are building a debug or release version. You can see these sets in the Customize Linker Options dialog box. (See Figure 9.6.)
Custom options are grouped as Global, Debug, or Release:
Global
Passed to the linker during every build.
Debug
Used only when you choose Debug in the Build Mode box.
Release
Used only when you choose Release in the Build Mode box.
Custom linker options are described in the next section.
·To choose the version of your program to be built:
1.From the Options menu, choose Project.
2.In the Build Mode box, choose the appropriate option.