I've been wrestling with the .json settings in VS Code for some hours now and I'm pretty lost. All I want to do is link pdcurses to my project so I can start coding. I have intellisense set up, but the #include <curses.h> statement is throwing "curses.h: No such file or directory":
The .jsons:
settings.json:
{
"files.associations": {
"iostream": "cpp",
"vector": "cpp"
}
}
c_cpp_properties.json:
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"C:\\Visual Studio Code Projects\\pdcurs39/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "C:\\Mingw-w64\\mingw64\\bin\\g++.exe",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "gcc-x64",
"forcedInclude": [],
"browse": {
"path": []
}
}
],
"version": 4
}
tasks.json:
{
"version": "2.0.0",
"tasks": [
{
"label": "build RL Test",
"type": "shell",
"command": "g++",
"args": ["-g", "-o", "RLTest", "RLTest.cpp"],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
launch.json:
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/RLTest.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "C:\\Mingw-w64\\mingw64\\bin\\gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
Normal C++ packages are working fine. pdcurses is installed at C:\Visual Studio Code Projects\pdcurs39\ with a default mingw-w64 make in the wincon folder.
I think the issue is with not including the pdcurses.a file, but I'm not sure how to go about linking that.