2012-11-24

Eclipse CDT resolves Mac Framework include path

Including framework's headers in CDT might encounter issues:
#include <GLUT/glut.h>
CDT indexer doesn't understand this since there is no actual path called "GLUT", but the GLUT.framework/Headers
Use soft links:
  • Create a include folder (e.g. ~/include) or cd /usr/include
  • ln -s /System/Library/Framworks/GLUT.framework/Headers ${your_include}/GLUT

No comments: