Open amir28 opened 4 years ago
I can't give you a solution but for relative path, I'd do, #include "config.h", include the whole directory. At least that's what most people do.
I can't give you a solution but for relative path, I'd do, #include "config.h", include the whole directory. At least that's what most people do.
Yes, for workaround I can include whole ../ directory but I just wanted report this bug to I have done something for this project :)
I've never seen a project that does include by file in gcc and then include as <> instead of "". I'm curious what the project is, if it's opensource.
I've seen normal include like #include "../config.h"
, no include needed from the compiler.
I've never seen a project that does include by file in gcc and then include as <> instead of "". I'm curious what the project is, if it's opensource. I've seen normal include like
#include "../config.h"
, no include needed from the compiler.
Incidentally, I never seen a project use "" instead of <> :-) an example is mate-panel https://github.com/mate-desktop/mate-panel/blob/master/mate-panel/panel.c
What I meant was to use <> AND include files when it's not in include path and add it in gcc.
haha. last commit seem to did that, very strange indeed.
Hello, First of all l have to appreciate all contributes who working on this project. I'm working on a project that written in c and GTK library. so I need to add extra option to the compiler that I use. according the this link I have to compile my code by:
so I think to get completion in vim-clang my .clang should be contain including ../config.h and the
pkg-config --cflags gtk+-3.0
output:but after get completion by Ctrl-X Ctrl-O I get below error:
my config.h exist in ../config.h
I use Ubuntu 20.04 and neovim v0.4.3