Run built exe from command line

Sysprogs forums Forums VisualGDB Run built exe from command line

This topic contains 1 reply, has 2 voices, and was last updated by  support 1 month, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30473

    AEHadi
    Participant

    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.

    -mingw toolchain

    -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.

     

    Attachments:
    You must be logged in to view attached files.
    #30476

    support
    Keymaster

    Hi,

    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.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.