Directory for #include preprocessor #343
Unanswered
Shimushushushu
asked this question in
Q&A
Replies: 1 comment 4 replies
-
My honest opinion is that a tool should never dictate how your code looks like, so you definitely shouldn't edit your source code to get fortls to work. From what I understand your settings should look something like this {
"include_dirs": "src",
"pp_suffixes": [".h"],
"incl_suffixes": [".h"]
} I don't have access to a computer right now, so I'm not sure about |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a framework (Flexi) which uses lots of preprocessors, e.g.,
#include
. The framework has a structure like:where
whatever.f90
includesflexi.h
by#include "flexi.h"
. Whilegfortran
works if-Isrc
is present, it seems that fortls cannot find the header. If I change it to#include "../flexi.h"
, it does work, but there are so many files that I think I should not do that.I tried both
source_dirs
andinclude_dirs
, by addingsrc/**
, but neither works.Have you ever met the problem, and how did you get over it?
Beta Was this translation helpful? Give feedback.
All reactions