formulahendry / formulahendry/vscode-code-runner

[Bug] something wrong

Open
#692 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

setting-json:
"code-runner.executorMap": {
"javascript": "node",
"java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
**"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt -lm && $dir$fileNameWithoutExt",**
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"..."
}

when i use code-runner, the compiler of "C" needs link "math.h", so, i use -lm to fix it in terminal;
but i get some wrong when I modify setting-json,
**In this settings.json, when use "-lm"(link math.h) args, return error:
aarch64-linux-gnu-gcc: error: /home/pi/test/12-structure/12-9p: No such file or directory
终端进程“/bin/bash '-c', '/usr/bin/aarch64-linux-gnu-gcc -g /home/pi/test/12-structure/12-9p.c -o -lm /home/pi/test/12-structure/12-9p'”启动失败(退出代码: 1)。**

**"-lm" ,it's just in wrong station!,even I can't debug it**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.