lewis@axiom.UUCP (Lewis Gordon Pringle Jr.) (02/06/86)
I have a strange problem with version 2.1 of the Megamax development system.
I have a program conisting of about 10 .o files, which work fine when linked
together. The resulting compiled program is about 26K.
When I take the .o files, and add them all to a library, and link the resulting
library, I get very different results. The resulting program is only 24K,
and fails misserably. The first time I ran it, the cursor was funny, and then
touching the menu bar caused a system bomb. I figured that the 'smart linker'
might have gotten too smart, and tried to get rid of all static functions,
since it didn't see any references to them, so I #defineded static to extern.
This produced the same sad results.
Debugging is VERY difficult, since Megamax provides NO DEBUGGING tools.
The closest thing to a debugger is a disassembler, which only works on .o
files (and is therefore of no help here!).
Any hints? The librarian isn't completely broken since I can get the same
thing out, when I put stuff in. Also, the linker isn't completely broken since
the toolbox interface is in syslib!
HELP!
Appropriate Remarks,
Lewis.
--
----------
The facts expressed herein are subject to change without notice.
UUCP: {humming,linus,security,harvard}!lewis@axiom.UUCP