Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2042
  • Last Modified:

visual c++ 2005 .net : fatal error C1014: too many include files : depth = 1024

when I use these # include
 #include <iostream>

#include <stdlib.h>

#ifdef __APPLE__
#include <OpenGL/OpenGL.h>
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif

#include "imageloader.h"
#include<math.h>
using namespace std;

  I got the error message:
  >c:\oglsdk\include\gl\glut.h(4) : fatal error C1014: too many include files : depth = 1024
0
david-lee
Asked:
david-lee
  • 2
2 Solutions
 
ikeworkCommented:
is this the first error in your error list?

i guess __APPLE__ is defined, right? looks like there is a circular dependency between some headers, they are including each other .. try to comment out one header after another, just one at a time and see, when the error disappears


ike
0
 
ikeworkCommented:
now that i reread the question, i gues __APPLE__ is not defind, is it?
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now