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

24 errors and 1 warnings generated. #7

Open
gerroon opened this issue Feb 1, 2024 · 4 comments
Open

24 errors and 1 warnings generated. #7

gerroon opened this issue Feb 1, 2024 · 4 comments

Comments

@gerroon
Copy link

gerroon commented Feb 1, 2024

Hi

I want to compile and test this for C64 but getting compile issues. Do you know a solution?

I have cc65 installed on Windows.

>make PLATFORM=C64
cc65 -I ./ -g -DP_C64=1 -DP_UNIX=2  -Os -DPLATFORM_MAZE=C64 -DP_CURRENT=P_C64 -Oi -T -t c64 c64maze.c
c64maze.c:11: Error: Include file 'ports/EXPAND2(PLATFORM_MAZE,.h)' not found
c64maze.c:62: Error: Call to undeclared function 'port_pset'
c64maze.c:69: Error: Call to undeclared function 'port_printat'
c64maze.c:74: Error: Call to undeclared function 'port_clearMazeRegion'
c64maze.c:79: Error: Call to undeclared function 'port_fflushMazeRegion'
c64maze.c:84: Error: Call to undeclared function 'port_graphics_init'
c64maze.c:89: Error: Call to undeclared function 'port_vert_line'
c64maze.c:95: Error: Call to undeclared function 'port_diag_line'
c64maze.c:100: Error: Call to undeclared function 'port_hor_line'
c64maze.c:106: Error: Call to undeclared function 'port_line'
c64maze.c:142: Error: Call to undeclared function 'port_getch'
c64maze.c:147: Error: Call to undeclared function 'port_get_time'
c64maze.c:391: Error: Call to undeclared function 'port_colour_banner'
c64maze.c:399: Error: Call to undeclared function 'port_loadVICFont'
c64maze.c:446: Error: Call to undeclared function 'port_get_current_time'
c64maze.c:457: Warning: Signed integer constant overflow
c64maze.c:496: Error: Call to undeclared function 'port_clearHGRpage'
c64maze.c:530: Error: Call to undeclared function 'port_font_magnification'
c64maze.c:551: Error: Call to undeclared function 'port_sound_irq'
c64maze.c:555: Error: Call to undeclared function 'port_start_sound'
c64maze.c:596: Error: Call to undeclared function 'port_loadVICFont'
c64maze.c:637: Error: Call to undeclared function 'port_clearHGRpage'
c64maze.c:643: Error: Call to undeclared function 'port_music_off'
c64maze.c:646: Error: Call to undeclared function 'port_music_on'
c64maze.c:664: Error: Call to undeclared function 'port_exit'
24 errors and 1 warnings generated.
make: *** [Makefile:24: c64maze] Error 1


@DarwinNE
Copy link
Owner

DarwinNE commented Feb 1, 2024

Hi,
thank you for your message.
It has been a long while since I last worked on this program, I accepted some pull requests in the meanwhile.
I just tried with a fresh install of cc64 on macOS and I could not reproduce the issue. On my computer everything compiles fine (but I noticed something seems wrong in the game, I should investigate).

It seems that in your case the compiler does not correctly execute a macro that is supposed to include the proper header for the C64 platform.

Try to change the line

#include INCLUDE_NAME

#include INCLUDE_NAME

as follows:

#include "ports/C64.h"

Of course, you will not be able to compile for platforms other than the C64.

Let me know.

@gerroon
Copy link
Author

gerroon commented Feb 2, 2024

Hi

Thanks for the reply. That seemed to work. I am not sure if it was supposed to create an actual disk file or not but I can run "c64maze" in VICE.

image

cc65 -I ./ -g -DP_C64=1 -DP_UNIX=2  -Os -DPLATFORM_MAZE=C64 -DP_CURRENT=P_C64 -Oi -T -t c64 c64maze.c
c64maze.c:457: Warning: Signed integer constant overflow
ca65 c64maze.s
cc65 -I ./ -g -DP_C64=1 -DP_UNIX=2  -Os -DPLATFORM_MAZE=C64 -DP_CURRENT=P_C64 -Oi -T -t c64 ports/C64.c
ports/C64.c:549: Warning: Variable 'music_v1' is defined but never used
ports/C64.c:549: Warning: Variable 'music_v2' is defined but never used
ports/C64.c:549: Warning: Variable 'music_v3' is defined but never used
ca65 ports/C64.s
ld65 -o c64maze -t c64 c64maze.o ports/C64.o c64.lib

@DarwinNE
Copy link
Owner

DarwinNE commented Feb 2, 2024

Good,
yes, c64maze is the output of the compiler. If you try to rename it as c64maze.prg, VICE is able to load it?

@gerroon
Copy link
Author

gerroon commented Feb 2, 2024

Yes it works, thanks

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

2 participants