bulat-ziganshin / easyprotobuf Goto Github PK
View Code? Open in Web Editor NEWTiny single-header C++ ProtoBuf library with both a simple, natural API and generator of elegant bindings from .proto files
License: The Unlicense
Tiny single-header C++ ProtoBuf library with both a simple, natural API and generator of elegant bindings from .proto files
License: The Unlicense
First, thanks for the excellent work.
As you stated in the README:
"Windows: tested only CL in x64 and x86 modes (the latter is the only 32-bit build that we tested so far)"
I don't know what "CL" stands for (sorry), but you are correctly warning about building in Windows.
It looks like the only project affected is the Code Generator utility.
This is not an issue for me as everything builds and works in my WSL, so I can generate everything I need.
But I figured I'd document this in case anyone else tries, and maybe as an enhancement request with low priority.
This is my build output for reference.
[main] Building folder: EasyProtoBuf
[build] Starting build
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --build c:/Users/dumas/Documents/git/EasyProtoBuf/build --config Debug --target ALL_BUILD -j 10 --
[build] MSBuild version 17.9.5+33de0b227 for .NET Framework
[build]
[build] Checking Build System
[build] Building Custom Rule C:/Users/dumas/Documents/git/EasyProtoBuf/CMakeLists.txt
[build] Building Custom Rule C:/Users/dumas/Documents/git/EasyProtoBuf/CMakeLists.txt
[build] decoder.cpp
[build] main.cpp
[build] Building Custom Rule C:/Users/dumas/Documents/git/EasyProtoBuf/CMakeLists.txt
[build] main.cpp
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(10,10): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(10,22): error C3646: 'name': unknown override specifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(10,26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(21,10): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(21,22): error C3646: 'name': unknown override specifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(21,26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(34,10): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(34,22): error C3646: 'name': unknown override specifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(34,26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(83,10): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(83,22): error C3646: 'name': unknown override specifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(83,26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(87,10): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(87,22): error C3646: 'type_name': unknown override specifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(87,31): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(88,10): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(88,22): error C3646: 'default_value': unknown override specifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(88,35): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(116,10): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(116,22): error C3646: 'name': unknown override specifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(116,26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(133,10): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(133,22): error C3646: 'name': unknown override specifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(133,26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(134,10): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(134,22): error C3646: 'package': unknown override specifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(134,29): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(160,36): error C2065: 'name': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(173,36): error C2065: 'name': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(187,36): error C2065: 'name': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(214,36): error C2065: 'name': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(218,36): error C2065: 'type_name': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(219,36): error C2065: 'default_value': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(250,36): error C2065: 'name': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(272,36): error C2065: 'name': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(273,36): error C2065: 'package': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\utils.cpp(5,10): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\utils.cpp(5,10): error C2065: 'string_view': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\utils.cpp(5,22): error C2146: syntax error: missing ')' before identifier 'str' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\utils.cpp(6,10): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\utils.cpp(7,10): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\utils.cpp(8,3): error C2143: syntax error: missing ';' before '{' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\utils.cpp(8,3): error C2447: '{': missing function header (old-style formal list?) [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\utils.cpp(26,27): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\utils.cpp(26,27): error C2065: 'string_view': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\utils.cpp(26,39): error C2146: syntax error: missing ')' before identifier 'format_str' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\utils.cpp(27,1): error C2143: syntax error: missing ';' before '{' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\utils.cpp(27,1): error C2447: '{': missing function header (old-style formal list?) [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(19,1): error C2332: 'struct': missing tag name [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(19,1): error C3306: '<unnamed-tag>': unnamed class template is not allowed [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(30,3): error C2143: syntax error: missing ';' before 'identifier' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(119,41): error C2065: 'option': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(138,13): error C2065: 'option': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(139,13): error C2065: 'option': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(145,6): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(145,18): error C2146: syntax error: missing ';' before identifier 'protobuf_type_as_str' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(146,1): error C2143: syntax error: missing ';' before '{' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(146,1): error C2447: '{': missing function header (old-style formal list?) [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(174,41): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(174,41): error C2065: 'string_view': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(174,53): error C2146: syntax error: missing ')' before identifier 'package_name_prefix' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(174,79): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(174,117): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(175,1): error C2143: syntax error: missing ';' before '{' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(175,1): error C2447: '{': missing function header (old-style formal list?) [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(199,39): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(199,39): error C2065: 'string_view': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(199,51): error C2146: syntax error: missing ')' before identifier 'package_name_prefix' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(199,77): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(200,1): error C2143: syntax error: missing ';' before '{' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(200,1): error C2447: '{': missing function header (old-style formal list?) [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(239,34): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(239,34): error C2065: 'string_view': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(239,46): error C2146: syntax error: missing ')' before identifier 'package_name_prefix' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(239,72): error C2039: 'string_view': is not a member of 'std' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vector(25,1):
[build] see declaration of 'std'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(240,1): error C2143: syntax error: missing ';' before '{' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(240,1): error C2447: '{': missing function header (old-style formal list?) [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(254,40): error C2065: 'option': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(258,58): error C2039: 'default_value': is not a member of 'FieldDescriptorProto' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(54,8):
[build] see declaration of 'FieldDescriptorProto'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(258,16): error C3861: 'myformat': identifier not found [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(280,13): error C3861: 'protobuf_type_as_str': identifier not found [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(282,19): error C2039: 'name': is not a member of 'FieldDescriptorProto' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(54,8):
[build] see declaration of 'FieldDescriptorProto'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(276,12): error C3861: 'myformat': identifier not found [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(292,13): error C3861: 'protobuf_type_as_str': identifier not found [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(293,19): error C2039: 'name': is not a member of 'FieldDescriptorProto' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(54,8):
[build] see declaration of 'FieldDescriptorProto'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(295,48): error C2039: 'name': is not a member of 'FieldDescriptorProto' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\descriptor.pb.cpp(54,8):
[build] see declaration of 'FieldDescriptorProto'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(295,19): error C3861: 'myformat': identifier not found [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(289,12): error C3861: 'myformat': identifier not found [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(306,15): error C2678: binary '+': no operator found which takes a left-hand operand of type 'const std::string' (or there is no acceptable conversion) [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(1954,59):
[build] could be 'std::_String_const_iterator<std::_String_val<std::_Simple_types<_Elem>>> std::_String_const_iterator<std::_String_val<std::_Simple_types<_Elem>>>::operator +(const __int64,std::_String_const_iterator<std::_String_val<std::_Simple_types<_Elem>>>) noexcept' [found using argument-dependent lookup]
[build] with
[build] [
[build] _Elem=char
[build] ]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(306,15):
[build] 'std::_String_const_iterator<std::_String_val<std::_Simple_types<_Elem>>> std::_String_const_iterator<std::_String_val<std::_Simple_types<_Elem>>>::operator +(const __int64,std::_String_const_iterator<std::_String_val<std::_Simple_types<_Elem>>>) noexcept': cannot convert argument 1 from 'const std::string' to 'const __int64'
[build] with
[build] [
[build] _Elem=char
[build] ]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(306,15):
[build] No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(2131,53):
[build] or 'std::_String_iterator<std::_String_val<std::_Simple_types<_Elem>>> std::_String_iterator<std::_String_val<std::_Simple_types<_Elem>>>::operator +(const __int64,std::_String_iterator<std::_String_val<std::_Simple_types<_Elem>>>) noexcept' [found using argument-dependent lookup]
[build] with
[build] [
[build] _Elem=char
[build] ]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(306,15):
[build] 'std::_String_iterator<std::_String_val<std::_Simple_types<_Elem>>> std::_String_iterator<std::_String_val<std::_Simple_types<_Elem>>>::operator +(const __int64,std::_String_iterator<std::_String_val<std::_Simple_types<_Elem>>>) noexcept': cannot convert argument 1 from 'const std::string' to 'const __int64'
[build] with
[build] [
[build] _Elem=char
[build] ]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(306,15):
[build] No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xutility(1792,50):
[build] or 'std::reverse_iterator<_BidIt> std::operator +(reverse_iterator<_BidIt>::difference_type,const std::reverse_iterator<_BidIt> &) noexcept(<expr>)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xutility(4311,5):
[build] or 'std::move_iterator<_Iter> std::operator +(move_iterator<_Iter>::difference_type,const std::move_iterator<_Iter> &) noexcept(<expr>)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(4931,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const std::basic_string<_Elem,_Traits,_Alloc> &)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(4943,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const _Elem *const ,const std::basic_string<_Elem,_Traits,_Alloc> &)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(4956,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const _Elem,const std::basic_string<_Elem,_Traits,_Alloc> &)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(4967,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem *const )'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(4980,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(4991,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,std::basic_string<_Elem,_Traits,_Alloc> &&)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(4997,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const std::basic_string<_Elem,_Traits,_Alloc> &)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(5003,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,std::basic_string<_Elem,_Traits,_Alloc> &&)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(5016,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const _Elem *const ,std::basic_string<_Elem,_Traits,_Alloc> &&)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(5022,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const _Elem,std::basic_string<_Elem,_Traits,_Alloc> &&)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(5028,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const _Elem *const )'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(5034,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const _Elem)'
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(306,15):
[build] while trying to match the argument list '(const std::string, std::string)'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(309,27): error C2988: unrecognizable template declaration/definition [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(309,27): error C2143: syntax error: missing ';' before ':' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(309,46): error C2988: unrecognizable template declaration/definition [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(309,46): error C2143: syntax error: missing ';' before ')' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(312,48): error C2065: 'message_type': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(312,47): error C2678: binary '+': no operator found which takes a left-hand operand of type 'std::string' (or there is no acceptable conversion) [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(1954,59):
[build] could be 'std::_String_const_iterator<std::_String_val<std::_Simple_types<_Elem>>> std::_String_const_iterator<std::_String_val<std::_Simple_types<_Elem>>>::operator +(const __int64,std::_String_const_iterator<std::_String_val<std::_Simple_types<_Elem>>>) noexcept' [found using argument-dependent lookup]
[build] with
[build] [
[build] _Elem=char
[build] ]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(312,47):
[build] 'std::_String_const_iterator<std::_String_val<std::_Simple_types<_Elem>>> std::_String_const_iterator<std::_String_val<std::_Simple_types<_Elem>>>::operator +(const __int64,std::_String_const_iterator<std::_String_val<std::_Simple_types<_Elem>>>) noexcept': cannot convert argument 1 from 'std::string' to 'const __int64'
[build] with
[build] [
[build] _Elem=char
[build] ]
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(2131,53):
[build] or 'std::_String_iterator<std::_String_val<std::_Simple_types<_Elem>>> std::_String_iterator<std::_String_val<std::_Simple_types<_Elem>>>::operator +(const __int64,std::_String_iterator<std::_String_val<std::_Simple_types<_Elem>>>) noexcept' [found using argument-dependent lookup]
[build] with
[build] [
[build] _Elem=char
[build] ]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(312,47):
[build] 'std::_String_iterator<std::_String_val<std::_Simple_types<_Elem>>> std::_String_iterator<std::_String_val<std::_Simple_types<_Elem>>>::operator +(const __int64,std::_String_iterator<std::_String_val<std::_Simple_types<_Elem>>>) noexcept': cannot convert argument 1 from 'std::string' to 'const __int64'
[build] with
[build] [
[build] _Elem=char
[build] ]
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xutility(1792,50):
[build] or 'std::reverse_iterator<_BidIt> std::operator +(reverse_iterator<_BidIt>::difference_type,const std::reverse_iterator<_BidIt> &) noexcept(<expr>)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xutility(4311,5):
[build] or 'std::move_iterator<_Iter> std::operator +(move_iterator<_Iter>::difference_type,const std::move_iterator<_Iter> &) noexcept(<expr>)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(4931,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const std::basic_string<_Elem,_Traits,_Alloc> &)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(4943,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const _Elem *const ,const std::basic_string<_Elem,_Traits,_Alloc> &)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(4956,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const _Elem,const std::basic_string<_Elem,_Traits,_Alloc> &)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(4967,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem *const )'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(4980,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(4991,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,std::basic_string<_Elem,_Traits,_Alloc> &&)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(4997,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const std::basic_string<_Elem,_Traits,_Alloc> &)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(5003,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,std::basic_string<_Elem,_Traits,_Alloc> &&)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(5016,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const _Elem *const ,std::basic_string<_Elem,_Traits,_Alloc> &&)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(5022,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const _Elem,std::basic_string<_Elem,_Traits,_Alloc> &&)'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(5028,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const _Elem *const )'
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xstring(5034,62):
[build] or 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const _Elem)'
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(312,47):
[build] while trying to match the argument list '(std::string, const std::string)'
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(314,26): error C2065: 'message_type': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(314,24): error C2988: unrecognizable template declaration/definition [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(314,24): error C2143: syntax error: missing ';' before ':' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(314,44): error C2988: unrecognizable template declaration/definition [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(314,44): error C2143: syntax error: missing ';' before ')' [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(317,90): error C2065: 'field': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(317,32): error C3861: 'cpp_type_as_str': identifier not found [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(318,13): error C2065: 'field_defs': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(318,67): error C2065: 'field': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(318,97): error C2065: 'field': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(318,27): error C3861: 'myformat': identifier not found [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(320,34): error C2065: 'field': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(321,17): error C2065: 'has_field_defs': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(321,74): error C2065: 'field': undeclared identifier [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] C:\Users\dumas\Documents\git\EasyProtoBuf\codegen\codegen.cpp(321,74): error C1003: error count exceeds 100; stopping compilation [C:\Users\dumas\Documents\git\EasyProtoBuf\build\codegen.vcxproj]
[build] (compiling source file '../codegen/main.cpp')
[build]
[build] decoder.vcxproj -> C:\Users\dumas\Documents\git\EasyProtoBuf\build\Debug\decoder.exe
[build] 'pwsh.exe' is not recognized as an internal or external command,
[build] operable program or batch file.
[build] tutorial.vcxproj -> C:\Users\dumas\Documents\git\EasyProtoBuf\build\Debug\tutorial.exe
[build] 'pwsh.exe' is not recognized as an internal or external command,
[build] operable program or batch file.
[proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" --build c:/Users/dumas/Documents/git/EasyProtoBuf/build --config Debug --target ALL_BUILD -j 10 -- exited with code: 1
[driver] Build completed: 00:00:04.617
[build] Build finished with exit code 1
I created a simple testing solution.
My proto file looks like this:
syntax = "proto2";
message SimpleMessage {
required int32 msg_id = 1;
optional string msg_string = 2;
}
message ComplexMessage {
required int32 complex_msg_id = 1;
repeated SimpleMessage messages = 2;
}
The codegen processes it without any problem and eventually translated the repeated SimpleMessage
into std::vector<SimpleMessage>
as you would expect.
My code sends and receives through a TCP socket.
I can encode/decode SimpleMessage object without any issue. But in trying to decode a ComplexMessage I run into the error:
Unexpected end of buffer in varint
which seems to be related to an EOF of sorts.
I will try to simplify my test to take out the socket code so I can share a simpler test.
But in the meanwhile I wonder if there is any size limitation that my vector might exceed.
Thanks again.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.