PDA

View Full Version : Order of include files [c++ related]



Lykurg
10th November 2008, 12:52
Hi,

what's the best order of include files?
#include "currentClass.h"
#include <QtStuff>
#include "otherClasses.h"

void currentClass::currentClass(...)


Does the order have any meaning or doesn't the order matter?


Thanks

Ginsengelf
10th November 2008, 12:56
That depends...:rolleyes:
Under Windows I had problems due to the order in the inclusion of winsock2.h and windows.h, but normally the order should not matter.

Ginsengelf