I managed to get fix this by applying the following patch:

https://github.com/google/protobuf/commit/a101fa52895fc2ad83d8b5d610243531b1608a08.patch

On Thursday, October 8, 2015 at 2:13:56 AM UTC+5:30, Benjamin Tillman wrote:
>
> Hello, when trying to compile protobuf 3.0.0-beta1 with 
> -DBUILD_SHARED_LIBS=ON I'm getting the following error during the linking 
> phase of the "tests" project:
>
> error LNK2019: unresolved external symbol "public: __cdecl 
> google::protobuf::io::GzipOutputStream::Options::Options(void)" 
> (??0Options@GzipOutputStream@io@protobuf@google@@QEAA@XZ) referenced in 
> function "private: virtual void __cdecl google::protobuf::io::`anonymous 
> namespace'::IoTest_GzipIo_Test::TestBody(void)" 
> (?TestBody@IoTest_GzipIo_Test@?A0xe27f828f@io@protobuf@google@@EEAAXXZ) 
> zero_copy_stream_unittest.obj
>
> The build works fine without the flag -DBUILD_SHARED_LIBS=ON and all tests 
> pass, and I'm really not sure how to start trying to resolve this, so any 
> help would be appreciated :)
>
> If it helps:
> -- I'm compiling on Windows 8 with Visual Studio 2013, Debug/x64 build.
> -- I'm generating the project files with: cmake -G "Visual Studio 12 2013 
> Win64" -DZLIB=ON -DBUILD_SHARED_LIBS=ON -DZLIB_INCLUDE_DIRECTORIES=. 
> -DZLIB_LIBRARIES=zlibwapi.lib ..
> -- I've built the zlib dll from source, using the same compiler and also 
> as a Debug/x64 build.
>
> If there is any other information I can provide just let me know.
>
> Regards,
> Ben.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to