Closed opsound closed 11 years ago
Hi - I am unable to get autocompletion suggestions for anything when I am editing C files in C-mode. I'm using the emacs-w32 package from Cygwin on Windows 7.
(emacs-version) "GNU Emacs 24.3.1 (i686-pc-cygwin) of 2013-03-11 on fiona"
I was able to build it successfully
alex ~/.emacs.d/emacs-clang-complete-async>make cc -std=c99 -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -g -Wall -Wextra -pedantic -O3 -I./src -c -o src/obj/msg_handlers.o ./src/msg_handlers.c cc -std=c99 -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -g -Wall -Wextra -pedantic -O3 -I./src -c -o src/obj/main.o ./src/main.c cc -std=c99 -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -g -Wall -Wextra -pedantic -O3 -I./src -c -o src/obj/msg_dispatcher.o ./src/msg_dispatcher.c cc -std=c99 -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -g -Wall -Wextra -pedantic -O3 -I./src -c -o src/obj/parse_results.o ./src/parse_results.c cc -std=c99 -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -g -Wall -Wextra -pedantic -O3 -I./src -c -o src/obj/completion_serv.o ./src/completion_serv.c cc -std=c99 -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -g -Wall -Wextra -pedantic -O3 -I./src src/obj/msg_handlers.o src/obj/main.o src/obj/msg_dispatcher.o src/obj/parse_results.o src/obj/completion_serv.o -L/usr/lib -lpthread -lffi -lm -lclang -o clang-complete alex ~/.emacs.d/emacs-clang-complete-async>
The llvm-config version I used is:
alex ~/.emacs.d/emacs-clang-complete-async>llvm-config --version 3.1
I have this in my .emacs.d/init.el
;; Emacs Clang Complete Async (require 'auto-complete-clang-async) (defun ac-cc-mode-setup () (setq ac-clang-complete-executable "~/.emacs.d/clang-complete") (setq ac-sources '(ac-source-clang-async)) (ac-clang-launch-completion-process) ) (defun my-ac-config () (add-hook 'c-mode-common-hook 'ac-cc-mode-setup) (global-auto-complete-mode t)) (my-ac-config) (setq ac-clang-flags (mapcar (lambda (item)(concat "-I" item)) (split-string " /cygdrive/c/gcc-arm-embedded/lib/gcc/arm-none-eabi/4.7.4/include /cygdrive/c/gcc-arm-embedded/lib/gcc/arm-none-eabi/4.7.4/include-fixed /cygdrive/c/gcc-arm-embedded/arm-non-eabi/include " )))
When I evaluate
ac-sources
with C-x-e in a C-mode buffer, it lists ac-source-clang-async in the minibuffer.
I put the wrong path for
(setq-ac-clang-complete-executable)
Hi - I am unable to get autocompletion suggestions for anything when I am editing C files in C-mode. I'm using the emacs-w32 package from Cygwin on Windows 7.
I was able to build it successfully
The llvm-config version I used is:
I have this in my .emacs.d/init.el
When I evaluate
with C-x-e in a C-mode buffer, it lists ac-source-clang-async in the minibuffer.