WindsorKnot
Registered
The nice man at iDevApps told me I might find someone in this here forum who can help me with my MPW-related query; which appears here unchanged from its debut there:
Hi folks - I'm learning C except I only have a PowerBook G3 series with OS 9, putting me at the mercy of MPW. I have yet to get this MPW racket to create an executable file. All documamentation says the "mrc" command in the MPW shell causes the source code to compile into an XCOFF formatted file. Indeed, when I applied the mrc command to source file "cube.c" (a simple multiplication prog), file "cube.c.o" was created; and its icon even has the letters "XCOFF" in it.
Now I've chanced into some documentation that says I can't in fact run the XCOFF as an executable; instead I should convert the XCOFF to a PEF format; and that I can use the makepef command in the MPW shell.
So I did this, and I got this message:
# makepef: 'cube.c.o' not XCOFF executable file format
# makepef: 'cube.c.o' not converted
Not XCOFF? How is that possible of a file that was created by the MrC compiler? And if it is somehow possible, then how do I either:
a) get the object file converted into XCOFF to make makepef happy, or
b) how do I get the object file converted straight into PEF, or
c) how do I get the source code to ultimately compile into SOMETHING executable - whichever format that turns out being?
Thanks.
Hi folks - I'm learning C except I only have a PowerBook G3 series with OS 9, putting me at the mercy of MPW. I have yet to get this MPW racket to create an executable file. All documamentation says the "mrc" command in the MPW shell causes the source code to compile into an XCOFF formatted file. Indeed, when I applied the mrc command to source file "cube.c" (a simple multiplication prog), file "cube.c.o" was created; and its icon even has the letters "XCOFF" in it.
Now I've chanced into some documentation that says I can't in fact run the XCOFF as an executable; instead I should convert the XCOFF to a PEF format; and that I can use the makepef command in the MPW shell.
So I did this, and I got this message:
# makepef: 'cube.c.o' not XCOFF executable file format
# makepef: 'cube.c.o' not converted
Not XCOFF? How is that possible of a file that was created by the MrC compiler? And if it is somehow possible, then how do I either:
a) get the object file converted into XCOFF to make makepef happy, or
b) how do I get the object file converted straight into PEF, or
c) how do I get the source code to ultimately compile into SOMETHING executable - whichever format that turns out being?
Thanks.