NAB plug-in for MWT user guide June 21, 2006
Contents PreviousNext

Chapter 2 Creating a Simple Application, Hello

2.7 Building and Running an Executable File

This section explains the procedure for creating and running an executable file.

  Procedure

  1. Build the file from the [Project...] menu.

    If an error message is displayed in the [Console] view, take action according to the error message contents to correct the error.

    To build the file, select [Clean] from the [Project...] menu, and run "build."

    The build processing after you select [Clean] varies as follows:

    • If [Build Automatically] is checked on the [Project...] menu, the build starts automatically.
    • If [Build Automatically] is not checked on the [Project...] menu, check [Start a build immediately] in the [Clean] dialog box, and click [OK].

    Figure: Build status

  2. Select [Run...] from the [Run] menu.

    Figure: Selecting [Run...]

  3. Select [C/C++ Local Application] in the [Run..] dialog box, and click the [New] button.

    Figure: [Run...] dialog box

  4. Enter "Hello.exe" in the [C/C++ Application] text box, and click the [Run] button.

    For a Linux version, enter "Hello".

    Figure: [Run...] dialog box

    To debug the file, specify a debugger.

    Select the [Debugger] tab in the [Run] dialog box, and specify [GDB Debugger] in [Debugger].

  5. The application is displayed as shown below.

    "Hello!" appears on the [push!] button when clicked.

    Figure: Running application


Contents PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2005-2006