* vax c ---> mips c
@ 1990-06-30 15:38 "John E. Davis"
1990-06-30 16:34 ` Bradford R. Daniels
1990-07-11 17:13 ` axt654
0 siblings, 2 replies; 3+ messages in thread
From: "John E. Davis" @ 1990-06-30 15:38 UTC (permalink / raw)
Hi,
I am trying to compile some vax c programs to run on a dec-station (3100)
using the mips c compiler. However, I am having problems. It seems that mips
c does not have the 'system' function or the 'getenv' function both of which
are in the stdlib.h include file. Does mips c have replacements for these?
Also any hints on making the switch would be appreciated.
Thanks,
--
--John
bitnet: davis@ohstpy
internet: davis@pacific.mps.ohio-state.edu
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: vax c ---> mips c
1990-06-30 15:38 vax c ---> mips c "John E. Davis"
@ 1990-06-30 16:34 ` Bradford R. Daniels
1990-07-11 17:13 ` axt654
1 sibling, 0 replies; 3+ messages in thread
From: Bradford R. Daniels @ 1990-06-30 16:34 UTC (permalink / raw)
In article <DAVIS.90Jun30113823@pacific.pacific.mps.ohio-state.edu>,
davis@pacific.pacific.mps.ohio-state.edu ("John E. Davis") writes:
> ... It seems that mips
> c does not have the 'system' function or the 'getenv' function both of which
> are in the stdlib.h include file. Does mips c have replacements for these?
> Also any hints on making the switch would be appreciated.
Have you tried linking? Those functions should be in the MIPS C RTL.
They are pretty standard Unix functions, and both are mentioned in
section 3 of my copy of the MIPS ULTRIX docset. I think what is con-
fusing you is that stdlib.h is not available on MIPS ULTRIX yet.
It is an ANSI standard header, and the current release of MIPS
ULTRIX is much farther from ANSI standard than VAX C.
Try doing a "man system" and a "man getenv" at the command prompt
on your DECstation.
- Brad
-----------------------------------------------------------------
Brad Daniels | Digital Equipment Corp. almost
DEC Software Devo | definitely wouldn't approve of
"VAX C RTL Whipping Boy" | anything I say here...
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: vax c ---> mips c
1990-06-30 15:38 vax c ---> mips c "John E. Davis"
1990-06-30 16:34 ` Bradford R. Daniels
@ 1990-07-11 17:13 ` axt654
1 sibling, 0 replies; 3+ messages in thread
From: axt654 @ 1990-07-11 17:13 UTC (permalink / raw)
In article <DAVIS.90Jun30113823@pacific.pacific.mps.ohio-state.edu>, davis@pacific.pacific.mps.ohio-state.edu ("John E. Davis") writes:
> Hi,
>
> I am trying to compile some vax c programs to run on a dec-station (3100)
> using the mips c compiler. However, I am having problems. It seems that mips
> c does not have the 'system' function or the 'getenv' function both of which
> are in the stdlib.h include file. Does mips c have replacements for these?
> Also any hints on making the switch would be appreciated.
>
> Thanks,
> --
> --John
>
> bitnet: davis@ohstpy
> internet: davis@pacific.mps.ohio-state.edu
Our version (2.1) of Ultrix does have both of the above, I use them in some
of my code.
Try removing the line #include <stdlib.h>, cc on a DS3100 is not ansi.
Alternatively get Gnu cc (gcc). It runs fine on a DS3100 and is much closer to
being Ansi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1990-07-11 17:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1990-06-30 15:38 vax c ---> mips c "John E. Davis"
1990-06-30 16:34 ` Bradford R. Daniels
1990-07-11 17:13 ` axt654
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox