Relative include paths
Posted: Wed Mar 07, 2007 05:55
Hi,
It seems that include statements in the CEGUI are are relative to the base directory. This is a bit problematic as it requires a user to define a global include path to the CEGUI in able to include CEGUI in a project.
There wouldn't be such a problem if you used relative include as relative to the actual file path.
So instead of having includes such as:
----CEGUIBase/Elements/CEGUIEditbox.h----
#include "CEGUIBase.h"
#include "CEGUIWindow.h"
#include "elements/CEGUIEditboxProperties.h"
please use:
----CEGUIBase/Elements/CEGUIEditbox.h----
#include "../CEGUIBase.h"
#include "../CEGUIWindow.h"
#include "CEGUIEditboxProperties.h"
Any comments?
It seems that include statements in the CEGUI are are relative to the base directory. This is a bit problematic as it requires a user to define a global include path to the CEGUI in able to include CEGUI in a project.
There wouldn't be such a problem if you used relative include as relative to the actual file path.
So instead of having includes such as:
----CEGUIBase/Elements/CEGUIEditbox.h----
#include "CEGUIBase.h"
#include "CEGUIWindow.h"
#include "elements/CEGUIEditboxProperties.h"
please use:
----CEGUIBase/Elements/CEGUIEditbox.h----
#include "../CEGUIBase.h"
#include "../CEGUIWindow.h"
#include "CEGUIEditboxProperties.h"
Any comments?