Compiling the Program
Once you have the source code entered, the next step is to compile the program and build the debug executable version of your program. From the Build menu or from the tool bar buttons, there are three choices: Compile, Build and Rebuild All. (Note: you may want to experiment with Tools | Customize and Commands tab and drag the Rebuild All button onto the tool bar beside the Build button.)
Two steps are required to make an executable program: compile the source file(s) into the machine instructions or object (obj) files and then link (create the exe file) the object files together along with system provided object files that contain the system functions, such as those for I/O operations. A Compile menu choice only compiles the current cpp file; it does not perform the link step necessary to create the executable program. Thus, one normally uses either
Build or Rebuild All menu choices which do both.
Read more »
Once you have the source code entered, the next step is to compile the program and build the debug executable version of your program. From the Build menu or from the tool bar buttons, there are three choices: Compile, Build and Rebuild All. (Note: you may want to experiment with Tools | Customize and Commands tab and drag the Rebuild All button onto the tool bar beside the Build button.)
Two steps are required to make an executable program: compile the source file(s) into the machine instructions or object (obj) files and then link (create the exe file) the object files together along with system provided object files that contain the system functions, such as those for I/O operations. A Compile menu choice only compiles the current cpp file; it does not perform the link step necessary to create the executable program. Thus, one normally uses either
Build or Rebuild All menu choices which do both.