[comp.sys.amiga.tech] Printer Drivers using Manx 5.0

kent@swrinde.nde.swri.edu (Kent D. Polk) (11/13/90)

I need to create a 1.3 compatible printer driver for a Mitubishi G500
printer. I wrote a printer driver for the C.Itoh Prowriter a while back
based on the Commodore 1.3 developer's stuff which I compiled & linked
it with an old copy of Lattice 1.2 after trying to use Manz 3.6.
(system calls such as AllocMem weren't handled correctly) I thought
that it would be a good place to start with 5.0, but still am having
problems (though many less than with 3.6).

Can printer drivers be written with Manx 5.0 using the Commodore
developers source for printer drivers? If so, how do I accomplish it?

With 5.0b, I can compile and link the existing software using the
makefile contained below. The driver currently gurus with
#00000004.00C91C08.

Without the -lc I get the following link errors (as would be expected):

(17)Undefined symbol: _LVOCloseLibrary.
(17)Undefined symbol: _LVOOpenLibrary.
(17)Undefined symbol: _AbsExecBase.
(17)Undefined symbol: .divs.
(17)Undefined symbol: .mods.
(17)Undefined symbol: _AllocMem.
(17)Undefined symbol: _FreeMem.
(17)Undefined symbol: .mulu.

-------------------------------------------------
# Prowriter Printer Driver Makefile for Aztec 5.0
CFLAGS = -m0b -mc -md
AFLAGS = -Idh0:Aztec/asm

all = init.o printertag.o data.o dospecial.o density.o render.o transfer.o

prtdrv:  $(all)
	 ln +cdb -o prtdrv $(all) -lc

-------------------------------------
Lattice 1.2 produced Printer driver:
	Prowriter ----rwed 4624  10  29-Mar-90 01:39:19
Manx 5.0b produced Printer driver:
	prtdrv    ----rwed 4272   9  07-Nov-90 21:48:35

Any comments on how to do this would be greatly appreciated,
====================================================================
Kent Polk - Southwest Research Institute - kent@swrinde.nde.swri.edu
        "Well... can't you get a Novell card for your Cray ?"
====================================================================