Search code examples
c++linuxeclipsearmcodan

Linux, Eclipse, ARM toolchain and Codan errors


After whole week of Googling, asking questions here, etc. I set up my arm-none-eabi toolchain under Linux. Finally!

My problem is (I really hope it's the last one!) I'm still getting Codan errors from Eclipse - it is pretty annoying. Those errors descriptions are for example:

  • Symbol 'stderr' could not be resolved
  • Invalid arguments 'Candidates are: void sleep(?)

I'm using Eclipse Luna for C/C++ developers. And code in editor is default one.

What should I do? Disable Codan? 'Teach' it to ignore things like that? If so, how can I do that?

Isn't it annoying?

Thanks for your help!


Solution

  • See here - How to remove error "unresolved inclusion" for user defined path in eclipse IDE . After you do these steps you should rebuild your project (delete all outputs and compile everything), and also rebuild index by right clicking on the project and selecting Index > Rebuild.

    This assumes that your project type is "Empty C++ Makefile project" with "Cross GCC" or "other toolchain".

    EDIT: Not directly related to your question, just a hint at the end before you waste too much time for it like I did - https://bugs.eclipse.org/bugs/show_bug.cgi?id=352407