I like really clean code so I want to pull all of the common includes into a separate file and then include that single file in all my other files. Also makes it easier if I start using a new or different library cuz I only have to change it in one place.
here is what i have in my include.h file:
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
// System Includes //
#include <iostream>
#include <cstdio>
#include <fstream>
#include <string>
// Imported Libraries //
#include "xmlParser.h"
// Our Includes //
#include "image.h"
#include "enum.cpp"
// OpenGL Includes //
#include <GL/gl.h>
#include <GL/glut.h>
using namespace std;
Each file has
#include "include.h"
Simple enough.
VS2008 gives me error C1014: Too many includes. I'm pretty sure from browsing other posts that this means I'm doing recursive including. But if I do it any other way it says it can't find any of the data types that are defined in the includes.
Thanks for any help.