Im using Visual Studio 2022 and have created a C project for linux.
I see a .out-file in Linux but I can not run it.
So, how do I compile an executable file, so I can run it on Linux Mint? I am using Linux Mint.
CodePudding user response:
As you are using linux, you can use cpp or g for compiling your code. Linux usually have the g . Run it by g filename.cpp and you will get a ELF file named a.out, you can execute this by the command ./a.out.
If you couldn't run or your code check for the modes on file with ls -la command and if you can't find the letter -x in your files mode then use the command chmod x filename .Hope this solves the problem.


