A/UX: Big C Compiler Error Message--"too many defines"


Article Change History
----------------------
08/31/92 - REVIEWED
* For technical accuracy


My Big C compiler who gives the "too many defines" error message. How can
I raise the number of usable arguments/functions?

The error message "too many defines" that occurred while compiling with the
Big C compiler indicates that too many #define directive statements were
defined in the C source program. This error message was detected by the
"cpp", the C PreProcessor, while compiling the C source file. Currently,
the maximum number of the #define directives defined by the Big cpp in A/UX
1.1 is around 2000. These numbers are used for the #define variable memory
allocation.

We have tested a simple C program (with about 1985 #define directives)
compiled under the Big C compiler of an 8MB A/UX 1.1, and the Big cpp
complained with the same "too many defines" message.

To prevent this problem, reduce the number of #define directives in each C
source file.


Published Date: Feb 18, 2012