I want to run the build .exe files that is built with ninja via a terminal but when I do so it gives error shown in pic.
I have a project that uses
-freertos mingw port.
-cmake project with ninja generator
when I build and run from the ide, it runs just fine. However when I try to run via clicking on the built exe located in the build folder I get the following error shown in pic. I have tried running all commands that the gdb session console shows it runs one by one. However when I reach command -exec-run it gives the same error as pic. I’m not sure what the ide is doing differently that I did not follow from he gdb session. gdb session attached.
This likely has something to do with the environment. A good starting point would be to dump the build command used by VisualGDB into a batch file as shown here, and to try running the application in the same environment.
If it doesn’t help, please try building the project manually and see if the executable produced via the manual build works differently.