I have a 6502-based controller that I'll be building in the near future for which I'd like to put the software together with cc65. I figured I'd experiment with building stuff first for the Apple II to familiarize myself a bit more with the toolchain...took a quick look at it a few years ago, but haven't tried building anything major with it yet. While trying to build some of the graphics demos, it's apparently necessary to use an alternate configuration for the linker. These apparently don't get put anywhere under /usr/lib/cc65 during installation, but are buried in the source tarball under src/ld65/cfg. I managed to find apple2.cfg and apple2-tgi.cfg. Trying to build tgidemo.c, though, failed: ld65: Warning: ./apple2-tgi.cfg(7): Segment `EXEHDR' does not exist Unresolved external `__RAM_SIZE__' referenced in: crt0.s(13) Unresolved external `__RAM_START__' referenced in: crt0.s(13) ld65: Error: 2 unresolved external(s) found - cannot create output file I then went back to the "Hello, world" program and tried building that: cl65 -C apple2.cfg hello.c text.s That failed with the same error as with tgidemo. OTOH, if I do this: cl65 -t apple2 hello.c text.s or this: cl65 -t apple2enh hello.c text.s it works, and the binary produced works as long as I skip the first four bytes (which the docs call a "DOS 3.3 header," but I don't recall such a header ever being necessary way back when I was still using DOS 3.3, and I suspect most people coding for the Apple II today are targeting ProDOS). Since I'm definitely going to need a custom config file to build code for my project, I'm going to need to figure this out. What am I doing wrong here? Scott Alfter scott@alfter.us ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sun Sep 9 11:35:50 2007
This archive was generated by hypermail 2.1.8 : 2007-09-09 11:35:54 CEST