An Ubiquitous C bug
Doug Gwyn
gwyn at smoke.brl.mil
Thu Jan 24 09:48:41 AEST 1991
In article <s64421.664559119 at zeus> s64421 at zeus.usq.EDU.AU (house ron) writes:
>I tried Quick C, TopSpeed C and Watcom C (a real loser).
It occurs to me that you might be linking the object modules without
preceding them by a run-time startup module (that sets up the environment,
then invoked main() with appropriate arguments, and after main() returns
invokes exit() etc.). If the compiler documentation specifies a certain
way of linking, then to assure standard conformance you must follow the
vendor's instructions exactly.
More information about the Comp.lang.c
mailing list