[gdal-dev] Using vscode to develop GDAL
Javier Jimenez Shaw
j1 at jimenezshaw.com
Tue May 21 01:54:37 PDT 2024
Hi
I am using vscode to edit (and build and debug) gdal. So far so good.
The compilation works with a simple task that runs a shell (see code below
if you need it). Debug also works fine.
My problem is syntax highlighting. Apparently it does not realize that
"GDAL_COMPILATION" is defined, so some variables appear as errors with
something like
identifier "GUIntptr_t" is undefined
To configure it I just did
cmake .. -DBUILD_PYTHON_BINDINGS=ON -DCMAKE_BUILD_TYPE=Debug
Does anybody uses visual studio code and had/solved this problem?
Thanks.
Javier
PS: this is my tasks.json:
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "cmake",
"args": ["--build", "build", "-j", "12"],
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"revealProblems": "onProblem",
}
}
]
}
.___ ._ ..._ .. . ._. .___ .. __ . _. . __.. ... .... ._ .__
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240521/c4f82429/attachment.htm>
More information about the gdal-dev
mailing list