This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

pure-gcc + Eclipse CDT autodiscovery / scanner discovery

Has anyone been able to get Eclipse working with the pure-gcc makefiles and autodiscovery of include files?

I can get Eclipse to build my project using the pure-gcc makefiles, but what I cannot get to work is the scanner discovery / indexing whereby Eclipse automatically finds include files. If I specify include paths in Eclipse manually, this works, but this is not efficient as we already have the includes mapped out in the makefiles.

The may seem trivial and I know it has been dismissed in many older threads I've found in this forum, but this is a major issue for trying to maintain a large project and use Eclipse as the development tool using makefiles.

Parents
  • Hi, I think Nguyen is right that you need make a pure Eclipse project in order to enable auto indexing. I have tried, but not found a way for Eclipse to automatically import the Makefile paths yet. I agree that this would be a nice feature to have, so I would appreciate if anyone has a solution for this that they can share.

    For Makefile projects my only suggestion for now is to copy&paste the Makefile paths to your Eclipse environment.

    EDIT 29.04.2015

    The new Eclipse tutorial here includes the steps to enables CDT to do autodiscovery with makefile managed projects. The key was to edit the makefile to print the command line arguments for the compiler.

Reply
  • Hi, I think Nguyen is right that you need make a pure Eclipse project in order to enable auto indexing. I have tried, but not found a way for Eclipse to automatically import the Makefile paths yet. I agree that this would be a nice feature to have, so I would appreciate if anyone has a solution for this that they can share.

    For Makefile projects my only suggestion for now is to copy&paste the Makefile paths to your Eclipse environment.

    EDIT 29.04.2015

    The new Eclipse tutorial here includes the steps to enables CDT to do autodiscovery with makefile managed projects. The key was to edit the makefile to print the command line arguments for the compiler.

Children
Related