xavierd / clang_complete

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

Loading libclang failed even though the path is correct #354

Open cyboflash opened 11 years ago

cyboflash commented 11 years ago

I'm getting the following message Loading libclang failed, completion won't be available. Are you sure 'C:\Program Files (x86)\LLVM 3.4.svn\bin' contains libclang? Does anybody know what might be the problem?

Here is the contents of C:\Program Files (x86)\LLVM 3.4.svn\bin

Volume in drive C is "some name" Volume Serial Number is "some number"

 Directory of C:\Program Files (x86)\LLVM 3.4.svn\bin

10/07/2013  04:46 PM    <DIR>          .
10/07/2013  04:46 PM    <DIR>          ..
09/28/2013  08:21 AM         2,725,376 bugpoint.exe
09/28/2013  10:36 AM        17,610,752 clang++.exe
09/28/2013  08:46 AM         1,057,792 clang-apply-replacements.exe
09/28/2013  08:46 AM         5,773,824 clang-check.exe
09/28/2013  10:36 AM        17,610,752 clang-cl.exe
09/28/2013  08:46 AM         1,320,448 clang-format.exe
09/28/2013  08:46 AM         5,495,808 clang-modernize.exe
09/28/2013  08:47 AM         5,084,160 clang-tidy.exe
09/28/2013  08:47 AM        17,610,752 clang.exe
08/08/2013  12:33 AM            17,943 git-clang-format
09/28/2013  08:46 AM         5,273,088 libclang.dll
09/28/2013  08:32 AM         9,536,512 llc.exe
09/28/2013  08:32 AM           838,144 lld.exe
09/28/2013  08:32 AM         4,743,680 lli.exe
09/28/2013  08:31 AM           293,376 llvm-ar.exe
09/28/2013  08:31 AM           908,288 llvm-as.exe
09/28/2013  08:32 AM           195,072 llvm-bcanalyzer.exe
09/28/2013  08:29 AM           142,336 llvm-config.exe
09/28/2013  08:32 AM           175,616 llvm-cov.exe
09/28/2013  08:32 AM           848,384 llvm-diff.exe
09/28/2013  08:32 AM           732,160 llvm-dis.exe
09/28/2013  08:33 AM           347,648 llvm-dwarfdump.exe
09/28/2013  08:33 AM         1,017,856 llvm-extract.exe
09/28/2013  08:33 AM         1,065,984 llvm-link.exe
09/28/2013  08:34 AM         5,429,760 llvm-mc.exe
09/28/2013  08:33 AM           177,664 llvm-mcmarkup.exe
09/28/2013  08:33 AM           788,992 llvm-nm.exe
09/28/2013  08:34 AM         5,554,688 llvm-objdump.exe
09/28/2013  08:33 AM           782,848 llvm-prof.exe
09/28/2013  08:34 AM           460,800 llvm-readobj.exe
09/28/2013  08:35 AM           372,736 llvm-rtdyld.exe
09/28/2013  08:34 AM           280,576 llvm-size.exe
09/28/2013  08:35 AM           793,600 llvm-stress.exe
09/28/2013  08:34 AM           413,696 llvm-symbolizer.exe
09/28/2013  08:07 AM           885,760 llvm-tblgen.exe
09/28/2013  08:47 AM           267,776 macho-dump.exe
09/28/2013  08:47 AM         9,558,528 opt.exe
              37 File(s)    126,193,175 bytes
               2 Dir(s)  441,509,023,744 bytes free

Here is the result of my :version

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct  8 2013 17:30:28)
MS-Windows 64-bit GUI version
Included patches: 1-52
Compiled by USER@USTRA-ISD3
Huge version with GUI.  Features included (+) or not (-):
+acl                +cmdline_compl      +diff               +find_in_path       +langmap            +mouse              -postscript         +signs              -tcl                +visualextra        +xpm_w32
+arabic             +cmdline_hist       +digraphs           +float              +libcall            +mouseshape         +printer            +smartindent        -tgetent            +viminfo            
+autocmd            +cmdline_info       -dnd                +folding            +linebreak          +multi_byte_ime/dyn +profile            -sniff              -termresponse       +vreplace           
+balloon_eval       +comments           -ebcdic             -footer             +lispindent         +multi_lang         +python/dyn         +startuptime        +textobjects        +wildignore         
+browse             +conceal            +emacs_tags         +gettext/dyn        +listcmds           -mzscheme           +python3/dyn        +statusline         +title              +wildmenu           
++builtin_terms     +cryptv             +eval               -hangul_input       +localmap           +netbeans_intg      +quickfix           -sun_workshop       +toolbar            +windows            
+byte_offset        +cscope             +ex_extra           +iconv/dyn          -lua                -ole                +reltime            +syntax             +user_commands      +writebackup        
+cindent            +cursorbind         +extra_search       +insert_expand      +menu               +path_extra         +rightleft          +tag_binary         +vertsplit          -xfontset           
+clientserver       +cursorshape        +farsi              +jumplist           +mksession          -perl               -ruby               +tag_old_static     +virtualedit        -xim                
+clipboard          +dialog_con_gui     +file_in_path       +keymap             +modify_fname       +persistent_undo    +scrollbind         -tag_any_white      +visual             -xterm_save         
   system vimrc file: "$VIM\vimrc"
     user vimrc file: "$HOME\_vimrc"
 2nd user vimrc file: "$HOME\vimfiles\vimrc"
 3rd user vimrc file: "$VIM\_vimrc"
      user exrc file: "$HOME\_exrc"
  2nd user exrc file: "$VIM\_exrc"
  system gvimrc file: "$VIM\gvimrc"
    user gvimrc file: "$HOME\_gvimrc"
2nd user gvimrc file: "$HOME\vimfiles\gvimrc"
3rd user gvimrc file: "$VIM\_gvimrc"
    system menu file: "$VIMRUNTIME\menu.vim"
Compilation: gcc -Iproto -DWIN32 -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -DHAVE_PATHDEF -DFEAT_HUGE -DMS_WIN64 -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -w -march=x86-64 -Wall -DFEAT_PYTHON -DDYNAMIC_PYTHON -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 -DFEAT_XPM_W32 -I xpm/x64/include -I xpm/x64/../include -O3 -fomit-frame-pointer -freg-struct-return -s
Linking: gcc -Iproto -DWIN32 -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -DHAVE_PATHDEF -DFEAT_HUGE -DMS_WIN64 -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -w -march=x86-64 -Wall -DFEAT_PYTHON -DDYNAMIC_PYTHON -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 -DFEAT_XPM_W32 -I xpm/x64/include -I xpm/x64/../include -O3 -fomit-frame-pointer -freg-struct-return -s -mwindows -o gvim.exe -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lversion -lwsock32 -L xpm/x64/lib -lXpm -lole32 -luuid      
goballooning commented 10 years ago

I have a similar problem. The libclang.a* and libclang.dylib* are in /opt/local/libexec/llvm-3.5/lib.

$ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Sep  2 2013 02:51:11)
Compiled by root@apple.com
Normal version without GUI.  Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent 
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments 
-conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs 
-dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path 
+find_in_path +float +folding -footer +fork() -gettext -hangul_input +iconv 
+insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent 
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape 
-mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse 
+mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg -osfiletype 
+path_extra -perl +persistent_undo +postscript +printer -profile +python/dyn 
-python3 +quickfix +reltime -rightleft +ruby/dyn +scrollbind +signs 
+smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary 
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title
 -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo 
+vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp
 -xterm_clipboard -xterm_save 
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -D_FORTIFY_SOURCE=0 -Iproto -DHAVE_CONFIG_H -arch i386 -arch x86_64 -g -Os -pipe
Linking: gcc -arch i386 -arch x86_64 -o vim -lncurses
$ which clang
/opt/local/bin/clang