Setting up a Muti-file Codelite Project

The following directions discuss creating a multi-file Codelite project when you are given source files and test data. These directions describe setting up a new workspace for every project. This probably is not necessary, but minimizes confusion if you have more than one project.

  1. Close any open workspaces. (This may not be necessary - you can experiment if you wish.)
  2. From the File menu, select New Workspace. Make it a C++ workspace and browse to a convenient location. If you are going to put just one project in the workspace, use a project-specific name that you will recognize later.
  3. From the File menu, select New Project. Set the project name appropriately. The following assumes you leave Create the project in its own folder checked, but you might experiment with the other options. The remaining fields should all have their default values: Category: Console; Type: Simple eecutable (g++); Compiler: GCC; Debugger: GNU gdb debugger; Build System: CodeLite Makefile Generator. Click OK.
  4. This creates a project with a main.cpp. You will probably want to delete that code and replace it with something that uses standard C++ libraries (instead of C libraries). For example,
            #include <iostream>
            using namespace std;
    
            int main(int argc, char *argv[]) {
              cout << "Hello" << endl;
              return0;
            }
    

Some options for how to proceed