How to build a library using the Clang C++ on Windows


#1

Hello, please tell me how can i build your library using Clang on Windows? I use the editor Visual Code.


#2

I’ve not used clang to compile GLFW, however you can use CMake to generate Visual Studio project files and then switch to clang as per this article on Visual Studio and Clang.

For Visual Studio Code I’m not sure, you’ll have to look into the Visual Studio Code documentation. You should be able to just add the relevant files to the project and set up the relevant compile & link options as per the generated Visual Studio project.