let g:ycm_show_diagnostics_ui = 0
let g:ycm_add_preview_to_completeopt = 1
let g:ycm_autoclose_preview_window_after_completion = 1
let g:ycm_autoclose_preview_window_after_insertion = 1
let g:ycm_confirm_extra_conf = 0
The flags I used for the ycm config file :
'-Wall',
'-Wextra',
'-Werror',
# You 100% do NOT need -DUSE_CLANG_COMPLETER in your flags; only the YCM
# source code needs it.
'-DUSE_CLANG_COMPLETER',
# THIS IS IMPORTANT! Without a "-std=<something>" flag, clang won't know which
# language to use when compiling headers. So it will guess. Badly. So C++
# headers will be compiled as C headers. You don't want that so ALWAYS specify
# a "-std=<something>".
# For a C project, you would set this to something like 'c99' instead of
# 'c++11'.
'-std=c89',
# ...and the same thing goes for the magic -x option which specifies the
# language that the files to be compiled are written in. This is mostly
# relevant for c++ headers.
# For a C project, you would set this to 'c' instead of 'c++'.
'-x',
'c',
'-I/usr/include/gtk-3.0',
'-I/usr/include/at-spi2-atk/2.0',
'-I/usr/include/at-spi2-2.0',
'-I/usr/include/dbus-1.0',
'-I/usr/include/dbus-1.0/include',
'-I/usr/include/gio-unix-2.0',
'-I/usr/include/cairo',
'-I/usr/include/pango-1.0',
'-I/usr/include/atk-1.0',
'-I/usr/include/pixman-1',
'-I/usr/include/freetype2',
'-I/usr/include/libpng16',
'-I/usr/include/harfbuzz',
'-I/usr/include/libdrm',
'-I/usr/include/gdk-pixbuf-2.0',
'-I/usr/include/glib-2.0',
'-I/usr/include/glib-2.0/include',
'-I/usr/lib/glib-2.0/include',
Here is the return of YcmDiags:
popup.c|1 col 10 error| 'gtk/gtk.h' file not found
popup.c|4 col 11 error| unknown type name 'GtkApplication'
popup.c|6 col 5 error| use of undeclared identifier 'GtkWidget'
popup.c|6 col 16 error| use of undeclared identifier 'window'
popup.c|8 col 5 error| use of undeclared identifier 'window'
popup.c|8 col 14 error| implicit declaration of function 'gtk_application_window_new'
popup.c|9 col 5 error| implicit declaration of function 'gtk_window_set_title'
popup.c|9 col 27 error| implicit declaration of function 'GTK_WINDOW'
popup.c|9 col 39 error| use of undeclared identifier 'window'
popup.c|10 col 5 error| implicit declaration of function 'gtk_window_set_default_size'
popup.c|10 col 46 error| use of undeclared identifier 'window'
popup.c|11 col 5 error| implicit declaration of function 'gtk_widget_show_all'
popup.c|11 col 26 error| use of undeclared identifier 'window'
popup.c|18 col 5 error| use of undeclared identifier 'GtkApplication'
popup.c|18 col 21 error| use of undeclared identifier 'app'
popup.c|21 col 5 error| use of undeclared identifier 'app'
popup.c|21 col 11 error| implicit declaration of function 'gtk_application_new'
popup.c|21 col 51 error| use of undeclared identifier 'G_APPLICATION_FLAGS_NONE'
popup.c|22 col 5 error| implicit declaration of function 'g_signal_connect'
popup.c|22 col 23 error| use of undeclared identifier 'app'
Here is the return of YcmDebugInfo:
Printing YouCompleteMe debug information...
-- Server has Clang support compiled in: True
-- Clang version: clang version 3.6.0 (tags/RELEASE_360/final)
-- Flags for /home/scriptor/Documents/Prog/popup/popup.c loaded from /home/scriptor/Documents/Prog/popup/.ycm_extra_conf.py:
-- ['-Wall', '-Wextra', '-Werror', '-DUSE_CLANG_COMPLETER', '--std=c89', '-x', 'c', '-isystem', '/home/scriptor/Documents/Prog/popup/../BoostParts', '-isystem', '-I/usr/include/gtk-3.0', '-I/usr/include/at-spi2-atk/2.0', '-I/usr/include/at-spi2-2.0', '-I/usr/include/dbus-1.0', '-I/usr/include/dbus-1.0/include', '-I/usr/include/gio-unix-2.0', '-I/usr/include/cairo', '-I/usr/include/pango-1.0', '-I/usr/include/atk-1.0', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/libpng16', '-I/usr/include/harfbuzz', '-I/usr/include/libdrm', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/glib-2.0', '-I/usr/include/glib-2.0/include', '-I/usr/lib/glib-2.0/include', '-isystem', '/home/scriptor/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../clang_includes']
-- Server running at: http://127.0.0.1:45390
-- Server process ID: 4726
-- Server logfiles:
-- /tmp/ycm_temp/server_45390_stdout.log
-- /tmp/ycm_temp/server_45390_stderr.log
Hello,
I currently need the gtk library, but
ycm
doesn't seem to have found the library, not even the headergtk/gtk.h
.I've tried with a simple file :
Here are my
ycm
options:The flags I used for the
ycm
config file :Here is the return of
YcmDiags
:Here is the return of
YcmDebugInfo
:Here is return of
vim --version
:Thank you very much in advance and do hesitate to ask for any further information :)