Search code examples
cbuildincludeeclipse-cdt

Adding preinclude header file to Eclipse CDT C project


I'm importing a C project to Eclipse CDT which has a preinclude header file. I want to know if there's an option to preinclude the file in the projects settings, The projects doesn't compile because of unresolved defines, that needs to be defined in the start. does anyone encountered this before ?


Solution

  • Yes, I've seen such problems several times.

    If your project doesn't compile, you'll have to change the compiler options, since the compiler needs to know about the file. It depends on your compiler, though, since this is not a C feature.