How many #include statements can your compiler handle?
My program containes 96 #includes but once I reached 100, it started to fail.
Is this a limit?
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Wed Nov 09, 2005 12:38 pm
I don't think anyone has ever tested this limit before.
I checked a few of our major projects here, and the most we use
is about 20 #include statements per project. That's roughly 10 .c
modules and the associated .h file for each.
You may be hitting a compiler limit, or possibly an operating system limit.
I would consolidate a few of the modules.
Jim C Ashby
Joined: 08 Nov 2005 Posts: 5
Posted: Wed Nov 09, 2005 2:59 pm
I have combined a lot of #includes and have resolved this issue at this time.
I have become acustom to breaking out my code to place each major function in it's own function call within it's own name.c file, it just makes programming with a structured environment easier.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum