SQLite Forum

Build Error: sqlite3.c(206932): error C2061: syntax error: identifier 'sqlite3_session'
Login
I am suddenly getting the error:

sqlite3.c(206932): error C2061: syntax error: identifier 'sqlite3_session'

when compiling with SQLITE_ENABLE_PREUPDATE_HOOK and SQLITE_ENABLE_SESSION though I fail to see what is causing the problem.

This from the fossil repo up-to-date as of 8bdd5fbf12

Not defining SQLITE_ENABLE_SESSION makes the error go away (along with the session extension).

Compiler is MSVC (Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30038.1 for x64)

gcc produces the error
sqlite3.c:206932:3: error: unknown type name 'sqlite3_session'