[英]VSCode: Code Runner extension is unable to execute the code on git bash terminal?
[英]enabling pthread on vscode using code runner extension on linux wsl?
在 VS Code 上使用帶有 Code runner 的 Posix 線程時,我在 Linux 上遇到了錯誤,並且遇到了對 pthread_create() 的未定義引用的錯誤;
for the fix add pthread flag in code runner settings.json:
{
"code-runner.clearPreviousOutput": true,
"code-runner.executorMap": {
"cpp": "cd $dir && g++ $fileName -pthread -o $fileNameWithoutExt &&
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.