To Add a new project in Eclipse
File - > New C project
1. Give a Project name
2. Unset the default location
3. Give the path to your project
4. Use Cross GCC/Linux GCC . Anything is fine as you are not going to build the project using eclipse
5. Select one of the Configuration (debug or release)
For the indexer to work You need to give the include paths in Projects->properties ->C/C++ General ->Paths and Symbols
a) Under include Tab select GNU C and Add the path of your include directory.
If you don't like the default code formatter which k&R select the project . Go to Windows->preferences->Code Style->Formatter select BSD/Allman
If you get errors for unresolved symbols uncheck the check for resolved symbols in code analysis. Even though you add the path for symbols still some times eclipse shows as unresolved symbol
File - > New C project
1. Give a Project name
2. Unset the default location
3. Give the path to your project
4. Use Cross GCC/Linux GCC . Anything is fine as you are not going to build the project using eclipse
5. Select one of the Configuration (debug or release)
For the indexer to work You need to give the include paths in Projects->properties ->C/C++ General ->Paths and Symbols
a) Under include Tab select GNU C and Add the path of your include directory.
If you don't like the default code formatter which k&R select the project . Go to Windows->preferences->Code Style->Formatter select BSD/Allman
If you get errors for unresolved symbols uncheck the check for resolved symbols in code analysis. Even though you add the path for symbols still some times eclipse shows as unresolved symbol