How do I build EXE for "Windows on ARM" platform with Visal Studio 2022?

Gobi Todič 21 Reputation points
2022-05-22T18:37:30.97+00:00

I try to figure out how to compile an EXE file (C++ project) for the "Windows on ARM" platform, using Visual Studio 2022:

Here is what I did so far:

  1. Create new "Console" project:
    204414-grafik.png
  2. Add new platform configuration:
    204367-grafik.png
  3. Select "ARM" as new platform
    204432-grafik.png

But then the compilation always fails with:
204379-grafik.png

I don't understand why that is :-(

As far as I can see, the "target machine" type is set correctly in Linker options:
204433-grafik.png

I am unable to find any settings to explicitly specify the target machine in the "C/C++" compiler options, though. What am I missing ???

Thank you for any advice!

Developer technologies | C++
{count} votes

Accepted answer
  1. Minxin Yu 13,506 Reputation points Microsoft External Staff
    2022-05-23T03:02:58.29+00:00

    Hi, @Gobi Todič
    You need to install ARM build tools. Note: Clean the project before building.
    204465-image.png

    Best regards,

    Minxin Yu


    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.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.