Likely related to mismatching versions between the protobuf library and the protoc version used to compile the protobuf files (under ./src/graphics/protobuf
).
Ensure that the protobuf version installed by vcpkg matches the version of protoc used to compile the .h
and .cc
files.
vcpkg list | grep proto
protoc --version
In qproperty.h:
- Line 53, replace
#include <experimental/source_location>
with#include <source_location>
- Line 100, replace
std::experimental::source_location
withstd::source_location
At one point, I could not get the Visual Studio program to link anything from lua.h.
Possible Solution:
Try generating the building and building from the command line instead. Note: Remove the current build folder before trying this.
The working build used -T ClangCL
when compiling, as in
cmake ../ -G "Visual Studio 16 2019" -A x64 -T ClangCL
Might be related.
Make sure VSCode is using the correct compiler. If you have older versions of Visual Studio installed, VSCode might be using the wrong headers. I have tested the intellisense for Visual Studio version >= 16.10.0.
Possible fix: Uninstall all other versions of Visual Studio, except for the latest one.