C1004: unexpected end-of-file found

11 views
Skip to first unread message

Robert Clark

unread,
Apr 8, 2020, 4:24:20 PM4/8/20
to Protocol Buffers
I'm trying to build the latest GPB with:
Microsoft Visual Studio Pro 2012, 
CMake 3.14.4 on Windows 10.
-Switching protobuf_WITH_ZLIB off
-Setting CMAKE_INSTALL_PREFIX to C:\<my user name here>\Documents\protobuf\install
-Setting protobuf_BUILD_TESTS to off 
CMake configured and generated w/o error but then

>nmake install
...
Scanning dependencies of target libprotobuf-lite
[  0%] Building CXX object CMakeFiles/libprotobuf-lite.dir/C_/Users/ClarkRG/Documents/protobuf/src/google/protobuf/any_lite.cc.obj/
any_lite.cc
C:\Users\ClarkRG\Documents\protobuf\src\google/protobuf/stubs/port.h(118) : fatal error C1004: unexpected end-of-file found

It builds fine in MSVS 2019.  
Elsewhere I see claims that the minimum MSVS version for GPB is 2008.
Seems _MSC_VER is...off somehow?

Thoughts?

Reply all
Reply to author
Forward
0 new messages