Juarez Posted May 9, 2018 Share Posted May 9, 2018 (edited) Hello So I have downloaded Visual Studio Code from microsoft webiste, cmake has installed with ninja support and clang version 6.0. My problem is that I can't understand why clang cannot compile a simple program, so here is the screenshot: https://i.imgur.com/4YuY2b0.jpg And here is the build log: https://pastebin.com/yACRGjuK I'm trying to compile this sample: https://github.com/chaseklvk/vscode-cpp-template Could someone look into this? Thanks in advance Edit1: Also I don't know where I can download COMPILED libcxx for that. Edited May 9, 2018 by juarez Link to comment Share on other sites More sharing options...
K^2 Posted May 12, 2018 Share Posted May 12, 2018 It looks like CMake is trying to compile its own test code first (by invoking try_compile), before even building a project for you. So I don't think there's necessarily anything wrong with your code. Unfortunately, the actual problem CMake is running into is obscured in your output, and I don't know what kind of test code CMake uses to test your compiler. See if you can get logs from the test it was trying to build to see what the actual error is. I suspect, it's some sort of a configuration or library path issue, but it can take a while guessing without looking at the actual error. Juarez 1 Prior to filing a bug against any of my code, please consider this response to common concerns. Link to comment Share on other sites More sharing options...
Parik Posted May 12, 2018 Share Posted May 12, 2018 You also need MinGW with clang to provide the standard libraries. Juarez 1 Link to comment Share on other sites More sharing options...
Juarez Posted May 20, 2018 Author Share Posted May 20, 2018 I just got the VS 2017 Community. I don't want to take my time with VS Code and Clang. This topic can be locked now. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now