3 hours ago, MontyHall said:
I can't get hello world to work. I'm running ubuntu 20 and compiled cc65.
When I make I get the following:
(base) rick@rick:~/workspace/x16-hello-cc65$ make
make -C asm
make[1]: Entering directory '/home/rick/workspace/x16-hello-cc65/asm'
cl65 -t cx16 -o HELLOASM.PRG -l hello.list hello.asm
ld65: Error: Cannot find config file 'cx16.cfg'
make[1]: *** [Makefile:4: all] Error 1
make[1]: Leaving directory '/home/rick/workspace/x16-hello-cc65/asm'
make: *** [Makefile:2: all] Error 2
I have cc65/bin in my path. I suspect I need to hack the make file to point to configs.
You shouldn't have to do that. cl65 should automatically look in ../cfg relative to the executable for the config file. Make sure it's still there, and that you are using the cc65 you built. Do a "which cl65" and see what comes up. If you have another cc65 toolchain in your path, that could mess things up, especially if that one doesn't have cx16 support built in. Worst case, if you can't figure out what's wrong, you can explicitly point to cx16.cfg by using the -C option with cl65.