Skip to content

Help with creating new header / modifying rp6502-vscode example(s) (for novices) #65

Answered by netzerohero
Hyenadae asked this question in Q&A
Discussion options

You must be logged in to vote

In response to your original post at the top:
It appears C isn't your native language. /grin.
And IDEs like vscode with Cmake tend to hide users with all their "magic performed under-the-hood".
(Hence your comment about difficulty-to-debug header-file since the IDE isn't following your as written C-syntax.) /grin.

  1. For include files in main.c there is a difference between:
    #include <rp6502_easy_gfx.h>
    and
    #include "./rp6502_easy_gfx.h"
    Or try:
    #include "rp6502_easy_gfx.h"

  2. For your new rp6502_easy_gfx.h file:
    There are a couple new-to-C isssues...
    The two new functions you've attempted to define are syntactically problematic. As currently written, the compiler pre-pass is interpreting…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Hyenadae
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Hyenadae
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants