home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.msdos.programmer:8941 comp.os.msdos.misc:4983
- Path: sparky!uunet!mcsun!uknet!harrier.ukc.ac.uk!eagle.ukc.ac.uk!rjg2
- From: rjg2@ukc.ac.uk (R.J.Gibson)
- Newsgroups: comp.os.msdos.programmer,comp.os.msdos.misc
- Subject: Stack size changing
- Message-ID: <1550@eagle.ukc.ac.uk>
- Date: 1 Sep 92 13:41:46 GMT
- References: >
- Reply-To: rjg2@ukc.ac.uk (R.J.Gibson)
- Organization: Biology Lab, University of Kent at Canterbury, UK.
- Lines: 43
-
-
- I have a problem which I have not been able to overcome and was
- wondering if anyone out there could help.
-
- I was sent a piece of C source which I have been unable to compile. I
- am using Boralands Turbo C ver 1.0 and the code in question is
-
- #ifdef __TURBOC__
- unsigned _stklen = 0x3fff; /* increase stack from 4K to 16K */
- #endif
-
- I have defined __TURBOC__ but ia am getting a message saying that this
- is an error "error -redeclaration of __stklen"
-
- There is not other manual decrlartion of this in the code that I can
- find.
-
- It also coplains at
-
- typedef unsigned char int8u;
-
- but not at
-
- typedef unsigned long int32u;
- typedef long int32;
- typedef unsigned short int16u;
- typedef short int16;
-
- Any ideas?
-
- Thanks
- Ro.
-
- ps other people have compiled this code on pcs with other compilers so
- it should work and I have managed it on a sun. I am just looking for
- an idea as I have no other pc compilers and would like it on the pc.
-
- DISCLAIMER:
- ***********
- All comments, jokes, asides, rubbish, cabbages etc are of my own
- making and in no way represent the policy of the University of Kent,
- or any other member of the University, nor any cat, dog, goldfish,
- insect, bacteria, mineral, etc, on campus. All flames to rjg2@ukc.ac.uk.
-