Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
0.12.0
-
None
-
None
Description
Current trunk has a minor problem when creating a shared library build with cmake on Windows with MSVC 2015 and MSVC 2017. It seems one of the symbols is not defined, even when
CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS is on:
TZlibTransport.cpp.obj : error LNK2001: unresolved external symbol "class apache::thrift::TOutput apache::thrift::GlobalOutput" (?GlobalOutput@thrift@apache@@3VTOutput@12@A)
bin\thriftzmd.dll : fatal error LNK1120: 1 unresolved externals
I don't know why this symbols fails for cmake. But if you want to go another route with explicitly exporting all relevant classes, and you need help to create a cmake-based dllimport/dllexport-integration, I can offer some help.
Attachments
Issue Links
- duplicates
-
THRIFT-1834 Support dynamic linking against the thrift C++ library on windows
- Open
- links to