UP | HOME

[22feb2024] mystery lsp complaints for iostream headers

Table of Contents

1. Setup

2. Problem

  • getting mysterious errors from flymake + emacs, e.g. message "<fstream> not found"

3. Solution

  • Had discarded cmake-examples/build directory, using cmake-examples/.build instead. This was to prevent build tree showing up when running tree in the cmake-examples directory
  • Left cmake-examples/compile_commands.json as a broken symlink referring to old build directory
  • This causes lsp understanding of compiler invocation to deteriorate as project acquires new files
  • Fix by swinging symlink to cmake-examples/.build/compile_commands.json, duh!

Author: Roland Conybeare

Created: 2024-09-08 Sun 18:43

Validate