[22feb2024] mystery lsp complaints for iostream headers
Table of Contents
1. Setup
- working on bespoke streambuf implementation (cmake-examples/zstream/include/zstream/zstreambuf.hpp) See https://github.com/Rconybea/cmake-examples.git
2. Problem
- getting mysterious errors from flymake + emacs, e.g. message "<fstream> not found"
3. Solution
- Had discarded
cmake-examples/builddirectory, usingcmake-examples/.buildinstead. This was to prevent build tree showing up when runningtreein thecmake-examplesdirectory - Left
cmake-examples/compile_commands.jsonas a broken symlink referring to old build directory - This causes
lspunderstanding of compiler invocation to deteriorate as project acquires new files - Fix by swinging symlink to
cmake-examples/.build/compile_commands.json, duh!