Archiving objects into a library

Post Reply
pixel
New member
Posts: 2
Joined: Tue Aug 13, 2024 7:07 pm

Archiving objects into a library

Post by pixel »

Hi there,

I am creating a Lisp for 8-bitters (6502, oh yes) and am now targetting CP/M. The thing I cannot figure out is a straightforward way to butt up objects into a library with no linking. Got this far:

Code: Select all

zcc +cpm -xlibsimpleio.a block.o control.o main.o outhn.o outhb.o outhw.o
error: undefined symbol: _main
Yes, _main has to be missing. I just want libsimpleio archived up and link later with the complete set of libraries.

Thanks a bunch in advance! Can barely wait to see how the z80 is performing – and to target more platforms.

pixel

The Lisp I'm talking about: https://github.com/SvenMichaelKlose/tunix
pixel
New member
Posts: 2
Joined: Tue Aug 13, 2024 7:07 pm

Re: Archiving objects into a library

Post by pixel »

Solved:

Code: Select all

z88dk-z80asm -xlibsimpleio.lib block.o control.o main.o outhn.o outhb.o outhw.o
I'd like to stress that the documentation/using an assembler for linking is a little unintuitive. []^)
Post Reply