Visual Studio No longer compiles C++ Files

Patrick England 0 Reputation points
2023-09-27T01:59:43.8866667+00:00

I've been doing C++ Lessons in visual Studio code; so these are Console Applications.

I booted up VS Code and tried to compile my next lesson, only to get hit with an error that the executable is not a file format recognized. I tried running my older lessons and ran into the same problem.

I tried running it via CMD, and get an error stating it can't run due to a incompatibility with my 64-bit Windows OS.

I know I installed the 64-bit compiler, System variable's leading to the executable are correct... am I missing something? Should something be updated? These program's I wrote up DID work correctly, now they won't even run. Not even windows will run the application, thinking I need to head to the windows store to find an app to run the app.

Developer technologies | C++
Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,441 Reputation points Microsoft External Staff
    2023-09-27T07:17:02.26+00:00

    Hello @Patrick England ,

    Thank you for taking time to post this issue in Microsoft Q&A forum.

    Sounds it worked before? Did you change something, move something or set something, like moving the .exe file, moving the folders, changing the path? Are you using any tool which is(for) 32 bit?

    Since you are using VS Code(different from VS), and currently VS Code is not supported in the Microsoft Q&A forum, I recommend directly posting your issue on Stack Overflow - visual studio code for further help(please also attach the steps to reproduce this issue).

    Thanks for your understanding, have a nice day.

    Best Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.