home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!rpi!uwm.edu!ux1.cso.uiuc.edu!news.cecer.army.mil!zorro.cecer.army.mil!rob
- From: rob@zorro.cecer.army.mil (Rob Knauerhase)
- Subject: long long and preproccessing
- Message-ID: <C19xsw.1zE@news.cecer.army.mil>
- Sender: news@news.cecer.army.mil (Net.Noise owner)
- Organization: US Army Corps of Engineers Construction Engineering Research Labs
- Date: Fri, 22 Jan 1993 21:17:20 GMT
- Lines: 32
-
- We have a question about "long long". The following program (x.c):
-
- #define HUGE long
- typedef long HIST;
- main()
- {
- HIST HUGE x;
- }
-
- compiles and runs with cc on a Sparc/SunOS. It does not on an Intergraph
- using their "acc".
-
- However, the following program (y.c):
-
- main()
- {
- long long x;
- }
-
- fails to compile on both Sun (using cc) and Intergraph.
-
- Both compile with gcc on the Sun.
-
- Any ideas why x.c works and y.c doesn't?
-
- Rob (et al.)
- --
- Rob Knauerhase [rob@amber.cecer.army.mil] Office of GRASS Integration
- Construction Engineering Research Labs, US Army Corps of Engineers
- "See, when the GOVERNMENT spends money, it creates jobs; whereas when the
- money is left in the hands of TAXPAYERS, God only knows what they do with it.
- Bake it into pies, probably. Anything to avoid creating jobs." -- Dave Barry
-