Compiling a Project

Produce an executable .ccx file from CCL code. CCL code must be compiled to produce an executable to run on Event Stream Processor.

  1. (Optional) Set CCL compiler options.
    1. Choose Edit > Preferences.
    2. Expand the tree view to Sybase Event Stream Processor > Run Test Preferences > Compiler Options.
    3. To change the directory for your compiled projects, click Change, select a directory, and click OK.
    4. To confirm any other changes, click OK.
      Note: By default, the compile directory is set to bin, which means the .ccx files are created in a subdirectory relative to the project's directory.
  2. In the Authoring perspective, in File Explorer, expand the tree view to show the .ccl file for the project.
  3. Select and open the .ccl project that you want to compile.
  4. If you want to compile a project without running it, either to check for errors or just to have an updated .ccx file, click Compile Project on the main toolbar or press F7.
  5. If you want to compile and run the project, click Run Project run project.

    The project automatically compiles and runs. The Server View in the Run-Test perspective opens, showing the project connection. A successful connection displays the server streams below the server folder. If the connection is unsuccessful, you see a Server Connection error dialog.

Studio silently saves all open files belonging to the project, compiles the project, and creates the .ccx file (the compiled executable). Compilation errors are displayed in Problems or Console view in each perspective, depending on the type of error. And, if you selected Run Projectrun project it also runs the compiled project.

Studio returns an error when a project refers to a schema from an imported file but the project compiles without errors. Refresh the file by closing the project or create the files in the opposite order.