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.
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
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