<div dir="ltr"><div dir="ltr"><div dir="ltr">I'm totally new to Window C++ programming and today I port my project on Windows and use clang.exe as the compile but failed on CMake configuration (lot's of library not found, for example <span style="text-align:left;text-transform:none;line-height:inherit;text-indent:0px;letter-spacing:normal;font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,sans-serif;font-size:13px;font-style:inherit;font-variant:inherit;font-weight:inherit;text-decoration:none;word-spacing:0px;display:inline;white-space:inherit;font-size-adjust:none;font-stretch:inherit;float:none;background-color:rgb(246,246,246)">clang.exe: error: no such file or directory: '/DWIN32' )</span></div><div dir="ltr"><span style="text-align:left;text-transform:none;line-height:inherit;text-indent:0px;letter-spacing:normal;font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,sans-serif;font-size:13px;font-style:inherit;font-variant:inherit;font-weight:inherit;text-decoration:none;word-spacing:0px;display:inline;white-space:inherit;font-size-adjust:none;font-stretch:inherit;float:none;background-color:rgb(246,246,246)"><br></span></div><div>I did some research and found out that I should use clang-cl.exe and the project finally got compiled, but I still know nothing about the clang and clang-cl, here's my question:</div><div><br></div><div>1. Does clang-cl compile the source to object file by itself or is it just a wrapper of MSVC?</div><div></div><div>2. What's the differences between clang.exe and clang-cl.exe?</div><div>3. Does clang-cl and clang both link to Windows version c++ standard libraries on Windows platform?</div><div>4. Followed by 3, I alway feel uncomfortable to debugging codes on Window C++ std libraries, for example on Linux, I can check values saved in a vector, but on windows it's possible, it seems that Windows use another way to implement it, I can only check the first and the last elements. So any way I can use Linux versions (I don't know how to name it, maybe gcc version)? </div></div></div>