Example #1: the Makefile is in the root

For example, if your local C++ source files have the following structure:

-source -a +inc -b -mydir +src +out Makefile

In this example, we'll be working in a directory called mydir, where you can run make, which will allow us to run the make command to collect the libraries from the other parts of the filesystem, and obtain the includes (including the local ones from the mydir directory).

To create a project:

  1. In your filesystem, create a directory called mydir.
  2. In the Project Explorer, select File > New > C++ Project .
  3. Specify a name, such as mydir (or any name your choose).
  4. Deselect the option Use default project location.
  5. From the filesystem, browse to select the directory you just created (mydir).
  6. Select Makefile > Empty Project .
  7. Select the QCC Toolchain.
  8. Click Finish.
  9. Select a new project, right-click and then select Properties.
  10. In the Properties dialog, select C/C++ General > Paths and Symbols .
  11. Select GNU C++, and then add a Directory(/source/a/inc) as your include path. This is a required step for the internal parser(for code navigation, refactoring, syntax highlighting, and so on).
  12. If you know the macro definitions used for the compiler (i.e. if you compiled using qcc -DDEBUG foo.c, include the DEBUG macro), include those here.
  13. Run the Build Project command.