Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* DEC C compiler limitation
@ 1999-07-07  4:00 Albert Chin-A-Young
  1999-07-07  4:00 ` Bob Arendt
  1999-07-09  4:00 ` Jeff Sullivan
  0 siblings, 2 replies; 4+ messages in thread
From: Albert Chin-A-Young @ 1999-07-07  4:00 UTC (permalink / raw)


While trying to compile pgp 5.0i with the DEC C compiler (from DU
4.0D), I received the following error:
	cc -O2 -std -DUNIX=1 -DHAVE_CONFIG_H -DPGPTRUSTMODEL=0 \
	-DDEBUG=1 -DUNFINISHED_CODE_ALLOWED=0 -I../../. \
	-I../.././include -I../include -I. -c pgpOutput.c -o \
	pgpOutput.o
	cc: Severe: language.h, line 1263: A logical source line \
	longer than 32767 characters was encountered.
	us=\"Key algorithm unknown\\n\"\n\
	^

This has to do with DEC cc not being able to accept a string literal
longer than 32k. Will this be fixed?

-- 
albert chin (china (at) thewrittenword (dot) com)



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: DEC C compiler limitation
  1999-07-07  4:00 DEC C compiler limitation Albert Chin-A-Young
@ 1999-07-07  4:00 ` Bob Arendt
  1999-07-09  4:00   ` Albert Chin-A-Young
  1999-07-09  4:00 ` Jeff Sullivan
  1 sibling, 1 reply; 4+ messages in thread
From: Bob Arendt @ 1999-07-07  4:00 UTC (permalink / raw)


Check the source format.  If the source came from a DOS or
Windows platform, you probably have carriage returns instead
of newlines.  Use something like:
  od -c file | more 

Use the "tr" command to translate all the "\r"
characters to "\n".

Hope this helps,
-Bob Arendt

Albert Chin-A-Young wrote:
> 
> While trying to compile pgp 5.0i with the DEC C compiler (from DU
> 4.0D), I received the following error:
>         cc -O2 -std -DUNIX=1 -DHAVE_CONFIG_H -DPGPTRUSTMODEL=0 \
>         -DDEBUG=1 -DUNFINISHED_CODE_ALLOWED=0 -I../../. \
>         -I../.././include -I../include -I. -c pgpOutput.c -o \
>         pgpOutput.o
>         cc: Severe: language.h, line 1263: A logical source line \
>         longer than 32767 characters was encountered.
>         us=\"Key algorithm unknown\\n\"\n\
>         ^
> 
> This has to do with DEC cc not being able to accept a string literal
> longer than 32k. Will this be fixed?
> 
> --
> albert chin (china (at) thewrittenword (dot) com)



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: DEC C compiler limitation
  1999-07-07  4:00 ` Bob Arendt
@ 1999-07-09  4:00   ` Albert Chin-A-Young
  0 siblings, 0 replies; 4+ messages in thread
From: Albert Chin-A-Young @ 1999-07-09  4:00 UTC (permalink / raw)


Bob Arendt <rdarendt@cwcom.net> wrote:
> Check the source format.  If the source came from a DOS or
> Windows platform, you probably have carriage returns instead
> of newlines.  Use something like:
>   od -c file | more 

> Use the "tr" command to translate all the "\r"
> characters to "\n".

Thanks. The source is fine though. The Sun cc, IRIX cc, and HP cc
(with a tweak) can deal correctly with large strings.

> Hope this helps,
> -Bob Arendt

> Albert Chin-A-Young wrote:
>> 
>> While trying to compile pgp 5.0i with the DEC C compiler (from DU
>> 4.0D), I received the following error:
>>         cc -O2 -std -DUNIX=1 -DHAVE_CONFIG_H -DPGPTRUSTMODEL=0 \
>>         -DDEBUG=1 -DUNFINISHED_CODE_ALLOWED=0 -I../../. \
>>         -I../.././include -I../include -I. -c pgpOutput.c -o \
>>         pgpOutput.o
>>         cc: Severe: language.h, line 1263: A logical source line \
>>         longer than 32767 characters was encountered.
>>         us=\"Key algorithm unknown\\n\"\n\
>>         ^
>> 
>> This has to do with DEC cc not being able to accept a string literal
>> longer than 32k. Will this be fixed?
>> 
>> --
>> albert chin (china (at) thewrittenword (dot) com)

-- 
albert chin (china (at) thewrittenword (dot) com)



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: DEC C compiler limitation
  1999-07-07  4:00 DEC C compiler limitation Albert Chin-A-Young
  1999-07-07  4:00 ` Bob Arendt
@ 1999-07-09  4:00 ` Jeff Sullivan
  1 sibling, 0 replies; 4+ messages in thread
From: Jeff Sullivan @ 1999-07-09  4:00 UTC (permalink / raw)


Yes, the 32767 character per line limit is a known problem. I've
seen it in the gimp sources where the code appears to be doing a
long static initialization for a bitmap. The initialization
could be broken up in order to workaround the problem.

However, we would like to fix it in our upcoming compilers. If
possible, I'd like to get a copy of your test case. FTP would
probably be better than mail, since I expect that many mailers
would wrap the text.

Send me mail and we can work out the transfer.

Thanks,
-Jeff
-- 
Jeff Sullivan | Compaq Computer Corp  |   mailto:jps@zk3.dec.com
Compaq C/C++  | Nashua, NH  ZK3-2X23  | Jeff.Sullivan@compaq.com



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-07-09  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-07  4:00 DEC C compiler limitation Albert Chin-A-Young
1999-07-07  4:00 ` Bob Arendt
1999-07-09  4:00   ` Albert Chin-A-Young
1999-07-09  4:00 ` Jeff Sullivan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox