簡體   English   中英

使用 linux wsl 上的代碼運行程序擴展在 vscode 上啟用 pthread?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM