Hi everyone!
Has anyone here managed to (re)-compiler the nocart tool (dsk->cpr converter)?
I don't need precompiled binaries (I have one for Windows). I need to recompile it under any POSIX environment (Linux, FreeBSD and Windows/Cygwin).
The goal for me is to integrate it into my universal 8-bit dev framework Cross-Lib:
https://github.com/Fabrizio-Caruso/CROSS-LIB
If I run the make command I get:
"
main.cpp:76:14: error: declaration of 'XPDB <unnamed struct>::XPDB' changes meaning of 'XPDB' [-fpermissive]
76 | XPDB XPDB;
| ^~~~
main.cpp:66:3: note: 'XPDB' declared here as 'typedef struct XPDB XPDB'
66 | } XPDB;
| ^~~~
make: *** [<builtin>: main.o] Error 1
"
Is the author (Kevin Thacker) reachable somehow?
Fabrizio Caruso
Paging
@arnoldemu :D
Using the same identifier for a typedef and a variable? That's just asking for trouble! Renaming it to XPDB_t and changing a couple instances of %d to %ld is all that's needed to get this compiling cleanly.