Gameboy Development Forum

Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)

You are not logged in.

Ads

#1 2023-05-25 12:58:31

sensuigizmek
New member
Registered: 2023-05-21
Posts: 1

Using GBDK 2020 on M1 Mac

Hello Everyone,

I am just getting started with GBDK 2020 and am new to coding with C++.

I am trying to figure out how to Fix Include Path Error in C/C++ Files using Visual Studio Code:
    - I am using Macbook M1 Chip
    - I am stuck on trying to run the main.c file after I downloaded the GBDK 2020.

I am getting the following error:

"message": "#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (/Users/KeS/Desktop/gbdk/examples/gb/template_minimal/main.c).",
    "source": "C/C++",
    "startLineNumber": 1,
    "startColumn": 1,
    "endLineNumber": 1,
    "endColumn": 19
}]

When I go to edit "includePath" I am taken to "c_cpp_properties.json" file where I have to update the "includePath".

I don't know what or how to exactly what to update the "includePath" to.

"configurations": [
        {
            "name": "Mac",
            "includePath": [
                "${workspaceFolder}/**"
                ]
            }
            ],
            "defines": [],
            "macFrameworkPath": [
                "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks"
            ],
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "c17",
            "cppStandard": "c++17",
            "intelliSenseMode": "macos-clang-arm64"
        }
    ],
    "version": 4
}

I was using this video to fix the Include Path Error: https://www.youtube.com/watch?v=LE9iJ9TpZlU
      - This video is windows operating system specific.

I have not been able to find the video/resources to specific to Macbook M1 chip.

Any help/ guidance is greatly appreciated.

Offline

 

#2 2023-05-27 16:45:23

mattu82
New member
Registered: 2023-05-11
Posts: 7

Re: Using GBDK 2020 on M1 Mac

I am just starting out with gbdk as well. I am on windows, but would think this should work on mac too. What I have in my projects is:

            "includePath": [
                "${workspaceFolder}/**",
                "c:\\gbdk\\include\\"
            ]

"c:\\gbdk\\include\\" should be wherever you installed gbdk, so if you have that in a different folder then update appropriately.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson