- Code: Select all
void main () {
#include "display.c"
#include "main.h"
etc.
void display () {
#include "display.h"
#include "main.h"
I get the error message:
Display.h:1: error: (141) can't open include file "main.h": Too many open files
If I put the main.h information into the Display.h file and do not include main.h in either main or display I get the same message.
All of the references I've been able to discover on-line seem to be talking about GNU C and do it all with compile options.
I have four files - main.c and .h and display.c and .h - I'm about to put all of the information into the main.c and eliminate all the other files altogether.
Why should something that should be simple be so difficult?