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

Can't compile on Ubuntu 18.04 #26

Open
MCPEmaniac opened this issue Sep 23, 2019 · 6 comments
Open

Can't compile on Ubuntu 18.04 #26

MCPEmaniac opened this issue Sep 23, 2019 · 6 comments

Comments

@MCPEmaniac
Copy link

I downloaded and tried to compile it on Ubuntu 18.04 but encountered the following error messages.
demo.c:38:10: fatal error: conio.h: No such file or directory
demo.c:40:10: fatal error: cbm.h: No such file or directory

Apparently this was written for an MSDOS compiler. I don't believe these two include files are necessary and they should either be commented out or deleted.

@Frank-Buss
Copy link
Contributor

Your cc65 version might be too old. What says "cc65 --version" ? I tested it with V2.18.

@Frank-Buss
Copy link
Contributor

But you are right, all these includes are not needed. Fixed here:
#29

@MCPEmaniac
Copy link
Author

I'm also using cc65 V2.18 but on Ubuntu 18.04 Linux instead of Windows.

@Frank-Buss
Copy link
Contributor

Frank-Buss commented Sep 23, 2019

That's strange, then it should work, because the conio.h and cbm.h files are part of CC65 and shouldn't matter if it is used on Linux or Windows. I use Linux as well.
But my patch is merged now, you can checkout the demo again, and then "make" should work.

@MCPEmaniac
Copy link
Author

I don't have the required tools for generating the balloon sprite so I commented out the balloon sprite and replaced it with my own sprite and the program seems to work on R31. I noticed the program doesn't seem to halt and return to the kernel when I hit the Esc key, but I've notice that on other programs as well.

I noticed the following statement in the program, but the BSOUT symbol doesn't seem to be defined anywhere in the program. Is BSOUT a symbol provided by CC65?
asm("jsr BSOUT");

@Frank-Buss
Copy link
Contributor

Yes, BSOUT is defined in the CC65 startup code which is used if you compile a program for C64.

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