Build Executable Programs

To build an executable program, make sure your target type is exe. You can do this by specifying a target file with file extension .exe. If you omit the extension from the file name in the target directive, and do not explicitly specify a target type, VisualAge C++ creates an executable file with no extension.

For example, this excerpt from a configuration file builds a program called myprog.exe from three source files, including a library. The program is built with the multithread version of the run-time library.

option link(linkWithMultiThreadLib) {
   target "myprog.exe" {   
      source "myprog.cpp", "myprog.hpp", "mylib.lib"
   }
}



Configuration Files


Change a Build Setup
Add or Change Source Files
Add or Change Targets
Build


Types of Source Files
Types of Target Files
Build Options