I use Windows 11 and have WSL2 Ubuntu 22.04.3 Lts installed. I've downloaded binaries of cling from their webpage and placed them in my home directory (the path is /home/drn/cling/bin/cling). But when I try to run C code, it spits out some gibberish and an error:
I also attach the screenshot of my settings:
Running wsl -e /home/drn/cling/bin/cling -x c < code_file.c in terminal produces correct output and runs the code.
I use Windows 11 and have WSL2 Ubuntu 22.04.3 Lts installed. I've downloaded binaries of cling from their webpage and placed them in my home directory (the path is /home/drn/cling/bin/cling). But when I try to run C code, it spits out some gibberish and an error:
I also attach the screenshot of my settings:
Running
wsl -e /home/drn/cling/bin/cling -x c < code_file.c
in terminal produces correct output and runs the code.