Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libatari800 compilation errors on macOS #266

Open
greggjaskiewicz opened this issue Aug 4, 2023 · 1 comment
Open

libatari800 compilation errors on macOS #266

greggjaskiewicz opened this issue Aug 4, 2023 · 1 comment

Comments

@greggjaskiewicz
Copy link

libatari800/atari800_antic.c:3055:7: error: call to undeclared function 'CPU_DLI'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
CPU_DLI();
^
libatari800/atari800_antic.c:3055:7: note: did you mean 'CPU_NMI'?
libatari800/atari800/src/cpu.h:24:6: note: 'CPU_NMI' declared here
void CPU_NMI(void);
^
libatari800/atari800_antic.c:3070:6: error: call to undeclared function 'CPU_DLI'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
CPU_DLI();
^
libatari800/atari800_antic.c:3218:3: error: call to undeclared function 'CPU_VBI'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
CPU_VBI();
^
libatari800/atari800_antic.c:3218:3: note: did you mean 'CPU_NMI'?
libatari800/atari800/src/cpu.h:24:6: note: 'CPU_NMI' declared here
void CPU_NMI(void);
^
3 errors generated.
error: command '/usr/bin/clang' failed with exit code 1

@greggjaskiewicz
Copy link
Author

The fix I implemented myself, but not recommend:

`diff --git a/lib6502/6502-emu b/lib6502/6502-emu
--- a/lib6502/6502-emu
+++ b/lib6502/6502-emu
@@ -1 +1 @@
-Subproject commit f702277d34635195948956982e8847932c334c1a
+Subproject commit f702277d34635195948956982e8847932c334c1a-dirty
diff --git a/libatari800/atari800_antic.c b/libatari800/atari800_antic.c
index 78d3bf8e..fa69ca41 100644
--- a/libatari800/atari800_antic.c
+++ b/libatari800/atari800_antic.c
@@ -48,6 +48,9 @@
#include "cycle_map.h"
#endif

+void CPU_DLI();
+void CPU_VBI();
+
#include "libudis.h"
#include "libdebugger.h"
extern frame_status_t *LIBATARI800_Status;`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant