-
Hi, I tried installing the llvm-mos compiler using the link in the llvm-mos-sdk, and was able to build and run simple c and c++ examples that didn't use the rp6502.h file. When trying to initialize graphics for the RP6502, however, I had linker failure with the xregn() function missing. In the rp6502.h file of the sdk, the xreg() function has been renamed to xregn(), and the xreg_vga_mode macro is missing. The xreg() function has also renamed to xregn() in the rp6502.h file from the downloaded compiler, and the xreg_vga_mode macro is present, but it is defined to use xreg()! I tied a bunch of stuff but never could get my program to compile. Any suggestions? here are snippets from the conflicting header files:`In rp6502.h from the SDK, it looks like this: int xregn(char device, char channel, unsigned char address, unsigned count, /* Temporary home for standard library headers. */
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
xregn is not a renamed xreg. it has a different prototype. have you built llvm-mos-sdk or are you using a binary distribution and did you try the other? |
Beta Was this translation helpful? Give feedback.
I uploaded new CPP demo to:
https://github.com/orgs/picocomputer/discussions/84