Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error check in Eclipse CDT using Makefiles

I'm using eclipse to develop my project, which bases on my custom makefile system. I have to use custom Makefile project because I want to tevelop LLVM porject pased on the LLVM makefile system, see: http://llvm.org/docs/Projects.html.

I created an "empty makefile" project in eclipse, I'v chosen the build location (Project->Properties->C/C++ Build->Build Location) and added every needed library sources (Project->Properties->C/C++ General->Paths and sources).

The project build and executes like it should. The problem is that a lot of lines is underscored with red colour as errors. This is obvious because eclipse chcecks for erros executing gcc and it does not executes it unless I'm using Makefiles (or maybe I am wrong ...).

Anyway - is there any way to check for syntax (and other types of) errors while using eclipse with makefiles?

like image 466
Wojciech Danilo Avatar asked Nov 12 '22 17:11

Wojciech Danilo


1 Answers

Check out this question, or google "eclipse unresolved symbols". You need to add the paths of your includes to your project settings, so Eclipse editor/indexer can find them.

The question in the link is for unresolved includes, but it also applies to all unresolved symbols.

like image 101
incrediblehulk Avatar answered Nov 15 '22 13:11

incrediblehulk