[comp.emacs] Problem compiling MicroEmacs under Turbo C

len@array.UUCP (Leonard Vanek) (12/03/87)

Having successfully compiling microEmacs ver. 39.e on our Sun
I have run into problems getting it to work on a PC. I suspect
my problems may be related to my lack of knowledge about the
Turbo C compiler that I am using.

First, I tried compling using the TC environment. I could not
even get it to compile because it claimed not to be able to find
include files that were themselves requested by included files.
This happened even though both files were in the same directory
and this directory was specified in the environment settings.

I gave up on this approach and resorted to the more familiar
(lack of) environment of TCC. Now I successfully compiled, but
got a load of warnings. These were mostly "parameter not used"
messages with a sprinkling of "variable may be undefined" and
"unreachable code". The EXE file obtained was about 72K (I thought
it was supposed to be more like 90K.) and hung the system when I tried
to run it. Setting $sres to "mono" had no effect. We are using a
hercules clone.

I did change estruct.h to what should be the correct parameters
for MS-DOS and Turbo C. Should I have disabled some of the options?
Can someone send be some diffs to the original estruct.h that worked?

By the way, I am willing to believe that the problem is not with the
compiler but with my microemacs settings, because I had a similar
problem with an earlier version EXE file that a colleague pulled
off of a BBS.
--------------------------------------------------------------------
Leonard Vanek                  UUCP: ... {utzoo mnetor}!dciem!array!len
Array Systems Computing Inc.   Phone: (416) 736-0900
5000 Dufferin St. Suite 200    FAX:   (416) 736-4715
Downsview, Ont. M3H 5T5
Canada