1827295 Members
3964 Online
109717 Solutions
New Discussion

cpp error

 
Jay_13
Occasional Contributor

cpp error

hello,

On HP-UX 11.0,

Some Compilation Error:

"cpp: ???error 4018: Macro param too large after ...
cpp: ???error 4020: Macro buffer too small - use ...."

I noticed the manpage of cpp suggested I use -Hnnn

#man cpp

-Hnnn Change the internal macro definition table to be nnn bytes in size. The default buffer size is at least 8188 bytes. This option serves to eliminate ``Macro param too large'', ``Macro invocation too large'', ``Macro param too large after substitution'', ``Quoted macro param too large'', ``Macro buffer too small'', ``Input line too long'', and ``Catenated input line too long'' errors.

But my question is how to modify the -Hnnn into cpp command line because my makefile is sth like this

CPP = cc -E

Thanks in advance

motto
1 REPLY 1
Hartmut Lang
Trusted Contributor

Re: cpp error

For gcc and i think also for cc use can use the option

-Wp,Hnn

This tells the cc to pass the option Hnn to the preprocessor.