I mainly changed the CExecutor.ts and NonInteractiveCodeExecutor.ts files so that a temporary .c file is made, compiled and the output executed (both files get deleted after compiling/execution)
tested on win 10/11
In the C Settings of the plugin, the compiler is set by providing the path. Arguments like -Wextra -Werror -Wall should work as well. The main function is always needed for gcc. If gcc throws an error while compiling, it is displayed below the codeblock.
I mainly changed the
CExecutor.ts
andNonInteractiveCodeExecutor.ts
files so that a temporary.c
file is made, compiled and the output executed (both files get deleted after compiling/execution)tested on win 10/11
In the
C Settings
of the plugin, the compiler is set by providing the path. Arguments like-Wextra -Werror -Wall
should work as well. The main function is always needed forgcc
. Ifgcc
throws an error while compiling, it is displayed below the codeblock.Inputting things via
scanf()
does not work.