Hey so I'm trying to set up flycheck with a C++ project, but I can't get it to find boost files and I can't seem to find the answer online. I think I must be missing something obvious. My .dir-locals.el file is: Lisp code:
C++ code:
However, /usr/local/include/boost/optional.hpp definitely exists and this whole thing compiles just fine with clang. So what stupid thing am I doing wrong? Edit: Welp, I added an extra set of parentheses around the whole thing and it seems to have fixed things. I'm not really sure I understand why that made a difference, so I'm gonna change my question to that. VikingofRock fucked around with this message at 06:12 on Jan 14, 2017 |
|
# ¿ Jan 14, 2017 01:50 |
|
|
# ¿ May 11, 2024 18:16 |
There Will Be Penalty posted:The contents of .dir-locals.el is a list (the top level of parentheses after you fixed your file) that can contain multiple mappings (each mapping being your second level of parentheses, a cons of a mode and an association list). What you had in that file before you fixed it was just one mapping. See a clearer example: Oooh that makes sense. I really need to go through some more lisp tutorials sometime to make this all more intuitive.
|
|
# ¿ Jan 14, 2017 10:03 |