Skip to content

Why Is bitnet.cpp Failing to Build on Windows Even With Visual Studio and Clang Installed? #184

Discussion options

You must be logged in to vote

This is a common issue caused by building from a standard PowerShell or terminal window instead of a properly initialized development shell. On Windows, bitnet.cpp requires you to build from a Visual Studio Developer Command Prompt or use PowerShell with the Visual Studio DevShell module loaded. This ensures all paths to Clang, standard libraries, and build tools are correctly set. The error with std::chrono in log.cpp is known and has been addressed in recent commits—pull the latest version of the repo to get the fix. For best results, open a Developer Command Prompt for VS2022 and run the full build sequence from there.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pawpatrolrockie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants