News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

nocart compilation under POSIX environments (Linux, Windows/Cygwin)?

Started by Fabrizio, 09:06, 21 March 22

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fabrizio

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

pelrun

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.

Powered by SMFPacks Menu Editor Mod