News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

#include too deeply nested

Started by stachel, November 01, 2010, 01:31:41 PM

Previous topic - Next topic

stachel

Poide 6.50.4 terminates if i try to save a project with  *#include too deeply nested* error.

Here an example:


// main.c
#include "file1.h"

int main(void)
{
    return 0;
}



// file1.h
#include "file2.h"



// file2.h
#include "file1.h"




Stefan Pendl

Your header files result in an endless loop.
You should never do this.
There is a pragma to include each file only once, which can be used to correct this problem.

It is still recommended to avoid circular references, which is what you have created.
---
Stefan

Proud member of the UltraDefrag Development Team

stachel

Maybe i expressed my self  not clearly.
IDE terminates if i push the *save* button. In version 5.0 it was ok.

TimoVJL

Or Project -> Update all depedencies
May the source be with you