How should I install lib.exe in Visual Studio?

VIP 1 Reputation point
2021-07-29T11:15:08.29+00:00

I've installed Visual studio 2019 but I can't execute command 'lib' in Visual Studio Command Prompt (It says 'lib' is not recognizable). so I think lib.exe is not installed.

I looked up official document for lib.exe but they say nothing about how to install lib.exe.

https://learn.microsoft.com/en-us/cpp/build/reference/overview-of-lib?view=msvc-160

What should I do to install lib.exe?

Developer technologies Visual Studio Other
{count} votes

2 answers

Sort by: Most helpful
  1. RLWA32 49,536 Reputation points
    2021-07-29T11:25:49.363+00:00

    You probably need to install the Desktop Development with C++ workload -
    118980-desktop-development.png

    2 people found this answer helpful.

  2. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    2021-07-30T06:31:47.753+00:00

    Hello @VIP ,

    Welcome to Microsoft Q&A forum.

    You can check if the lib.exe is located under this path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.XX.XXXXXXX\bin\Hostx64\x64\lib.exe.

    119207-image.png

    Best Regards,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      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.
    0 comments No comments

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.