Prerequisites

Here's how to set up Eclipse to work with a Marlin Processor, including debugger.
These instructions are for Eclipse Indigo. The instructions at https://twiki.cern.ch/twiki/bin/view/CLIC/LCSimEclipse may be a starting point to set up Eclipse, although they are for a different version.
Either

or

  1. Add the ILCSoft include paths, e.g.
    1. Enable Generate Makefiles automatically in Properties -> C/C++ Build
    2. Add these paths under Properties -> C/C++ Build -> Settings -> Tool Settings Tab
    3. Disable Generate Makefiles automatically in Properties -> C/C++ Build
  2. Some parts of the code may be wrapped in #ifdef. Define the symbol for this #ifdef (e.g. USEROOT) under Properties -> C++ General -> Paths and Symbols -> Symbols Tab -> GNU C++
  3. Specify the build location of your Makefile. In Properties -> C/C++ Build, in the build location field, add /build within the curly braces after the name of your project.

Now your done and should have code completion available.
You can add Run and Debug configurations by specifying the location of the Marlin executable and adding the necessary MARLIN_DLL and LD_LIBRARY_PATH environment configurations. Details to be put here upon request.