Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

how can i use libc++'s mutex with clang complete #195

egmkang opened this Issue Aug 28, 2012 · 4 comments


None yet
3 participants

egmkang commented Aug 28, 2012

clang 3.1 has some problem compiling mutex(libstdc++'s impl). there is not this problem when using libc++.
i set .vimrc to tell libclang to use libc++, but it not works...
this is my .vimrc:

let g:clang_user_options='-stdlib=libc++ -std=c++11'

my codes can compile with args -g -Wall -Werror -stdlib=libc++ -std=c++11.
How can i solve this problem.

egmkang commented Aug 29, 2012

I found autoload/getopts/cpp.clang.cache :

but,i'm using libc++,not libstdc++. libclang using wrong including path....
insert "-I/usr/include/c++/v1" to solve this problem temporarily...

@xaizek xaizek closed this in 2831a50 Aug 29, 2012


xaizek commented Aug 29, 2012


thanks for investigating this. I just pushed changes that make clang include paths source consider -stdlib option. Reopen the issue if it doesn't work for you.

egmkang commented Aug 29, 2012



oblitum commented Aug 30, 2012

Also see #182.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment