Previous Next
Building the executable

    Note
    SNiFF+ doesn't have its own compiler therefore you must have a compiler installed on your computer to compile SNiFF+ projects. By default, the gnu compiler is specified on Unix and Microsoft Developer is specified on Windows. If you are using another compiler, it must be specified in your Platform Makefile. For more information, see User's Guide -- Build and Make Support.

In the Project Editor
Before building, make sure that the projects' Make Support information is up-to-date. Makefiles should be updated whenever structural changes are made to the projects, or when projects are first opened in a new working environment.

  1. Make sure that all the projects in the Project Tree are checkmarked. If they are not, right- click anywhere in the Project Tree and choose Context menu > Select From All Projects. This command allows you to checkmark all projects in one step.
  2. Choose Target > Update Makefiles... to generate the Make Support Files for all the projects.
    A dialog appears asking you whether the dependencies information should also be updated.
  3. Press Yes.
    SNiFF+ generates the Make Support Files and stores them in the
    .sniffdir subdirectory of each project directory.
  4. Highlight complex.shared by clicking on its name.
    SNiFF+ needs to know where to start Make execution. You tell SNiFF+ this by selecting the appropriate project. In the example project, Make execution starts in
    complex.shared .
  5. Choose Target > Make > all to recursively build the executable.
    A Shell opens, in which the
    make all command is recursively executed. Upon completion, you should have an executable named complex (on Windows: complex.exe ) in:
    <sniff_complex>/sowe/complex
  6. Run the executable to assure yourself that it executes properly. To find out how to do so, see Running the executable.
    You'll notice that the output is incorrect. This is due to an implementation error; however this error can be safely ignored. (How to fix this error is shown in the Edit/Compile/Debug tutorial).
What's next
  • Close the project in the SOWE. To do so:

In the Launch Pad
  1. Select complex.shared - SOWE:Complex SOWE .
  2. Choose Project > Close Project complex.shared.
  • The next tutorial introduces you to Developing in a team.