Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for other C compiler: gcc #305

Merged
merged 2 commits into from Apr 14, 2024

Conversation

melo-afk
Copy link
Contributor

@melo-afk melo-afk commented Nov 6, 2023

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.

Inputting things via scanf() does not work.

@twibiral twibiral changed the base branch from master to develop December 15, 2023 20:33
@twibiral
Copy link
Owner

Hey, that's great! Thank you for contributing!

Do you mind updating your branch based on main?

@melo-afk
Copy link
Contributor Author

no problem. The branch should be updated now

@twibiral
Copy link
Owner

Thanks for the contribution! It will be released soon

@twibiral twibiral merged commit 7a68511 into twibiral:develop Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants