* help request
@ 2001-01-08 10:18 Mattia Zomer
2001-01-08 13:41 ` Bob Koehler
0 siblings, 1 reply; 2+ messages in thread
From: Mattia Zomer @ 2001-01-08 10:18 UTC (permalink / raw)
I had to compile a C program on an AlphaStation DS20/E,
Digital Unix version 4.0F.
The compiler had a problem because random was declared as long
instead of int.
Are int and long equivalent and interchangeable under this sistem?
If not, how can I make the program work ?
Thanks,
Mattia Zomer
mailto:1120ic@axposf.ing.unitn.it
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: help request
2001-01-08 10:18 help request Mattia Zomer
@ 2001-01-08 13:41 ` Bob Koehler
0 siblings, 0 replies; 2+ messages in thread
From: Bob Koehler @ 2001-01-08 13:41 UTC (permalink / raw)
In article <3A59940F.4D094524@axposf.ing.unitn.it>, Mattia Zomer <1120ic@axposf.ing.unitn.it> writes:
> I had to compile a C program on an AlphaStation DS20/E,
> Digital Unix version 4.0F.
> The compiler had a problem because random was declared as long
> instead of int.
> Are int and long equivalent and interchangeable under this sistem?
> If not, how can I make the program work ?
Please use a more meaningfull title for your posts. Lots of people post
wnating help.
long on Tru64 is 64 bit, int is 32 bit, this tends to keep with the
original K&R concept of long and int since Alpha is a 64 bit system
(long is the longest natural integer for the system).
Fix the code so it is declared correctly (#include <stdlib.h> instead of
defining it yourself), and then used correctly.
----------------------------------------------------------------------
Bob Koehler | Computer Sciences Corporation
NASA GSFC Flight Software | Federal Sector, Civil Group
| please remove ".aspm" when replying
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-01-08 13:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-08 10:18 help request Mattia Zomer
2001-01-08 13:41 ` Bob Koehler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox