Home > database >  Run executable file automatically right after compilation
Run executable file automatically right after compilation

Time:07-22

I'm using Matlab to generate some C code and MinGW is the compiler. This is how the toolchain is configured:

Toolchain

Once the build process is finished I get an executable file that I can run, and it works fine (it's just a simple Windows console program).

However, I can't find the options to run it automatically right after compilation. I've seen some code where they added ($PRODUCT) to the "Execute" option, but it didn't work for me. Any help is much appreciated!

CodePudding user response:

Following the advice from here:

https://www.reddit.com/r/vim/comments/r6dthv/make_with_makefile_and_run_exe_from_same_command/

I added && start C:\...\test.exe (where ... is the full path) to the "Make Tool" option (bottom line) and it worked.

  • Related