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

Posted on 2009-04-25
Last Modified: 2013-12-14
when I use these # include
 #include <iostream>

#include <stdlib.h>

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

#include "imageloader.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
Question by:david-lee
    LVL 20

    Accepted Solution

    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

    LVL 20

    Assisted Solution

    now that i reread the question, i gues __APPLE__ is not defind, is it?

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
    Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
    The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now