I try to compile my C++ code in Visual Studio Code but every time I get the following error:
undefined reference to ...
I have to add -lgdiplus-lgdi32 to my compiler/linker options. How can I do this in Visual Studio?
This is a part of my task.json file:
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe",
"-lgdiplus",
"-lgdi32"
],