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

Closed
egmkang opened this Issue Aug 28, 2012 · 4 comments

Comments

Projects
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 :
-I/usr/include/c++/4.6/
-I/usr/include/c++/4.6/x86_64-linux-gnu/
-I/usr/include/c++/4.6/backward/
-I/usr/local/include/
-I/usr/local/lib/clang/3.1/include/
-I/usr/include/x86_64-linux-gnu/
-I/usr/include/

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

Collaborator

xaizek commented Aug 29, 2012

Hi,

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

awesome!

Contributor

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