xavierd / clang_complete

Vim plugin that use clang for completing C/C++ code.
http://www.vim.org/scripts/script.php?script_id=3302
1.96k stars 308 forks source link

generating .clang_complete with make #516

Closed junhyeokahn closed 7 years ago

junhyeokahn commented 7 years ago

Hi, when I CXX=”$HOME/.vim/bin/cc_args.py clang++” cmake .. I returns cc_args.py is not able to compile a simple test program. and something like permission denied.

I would appreciate if you can help me

xaizek commented 7 years ago

Does running $HOME/.vim/bin/cc_args.py clang++ in a shell work?

junhyeokahn commented 7 years ago

well, When I run the python cc_args.py clang++ in $HOME/.vim/bin/ it returns

screen shot 2017-02-21 at 5 14 58 am

Below image is what i got when I tried CXX=”$HOME/.vim/bin/cc_args.py clang++” cmake .. in build folder in project

screen shot 2017-02-20 at 11 16 24 pm
xaizek commented 7 years ago

You didn't pass it a parameter in the first case, hence the failure.

It shouldn't need python, just ./cc_args.py clang++. It must be executable to work and your output says Permission denied, which hints that it isn't. Just do chmod +x cc_args.py.

junhyeokahn commented 7 years ago

I got it! Thank you so much! :)