CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

#include limitations?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Jim C Ashby



Joined: 08 Nov 2005
Posts: 5

View user's profile Send private message Visit poster's website MSN Messenger

#include limitations?
PostPosted: Wed Nov 09, 2005 11:32 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Nov 09, 2005 12:38 pm     Reply with quote

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

View user's profile Send private message Visit poster's website MSN Messenger

PostPosted: Wed Nov 09, 2005 2:59 pm     Reply with quote

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.

Thanks! Smile
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group