[
https://issues.apache.org/jira/browse/THRIFT-1834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sylwester Lachiewicz resolved THRIFT-1834.
------------------------------------------
Resolution: Fixed
Shared-library builds are supported on Windows via the {{BUILD_SHARED_LIBS}}
CMake option
([lib/cpp/CMakeLists.txt|https://github.com/apache/thrift/blob/master/lib/cpp/CMakeLists.txt]
line 26). Resolving as Fixed.
> Support dynamic linking against the thrift C++ library on windows
> -----------------------------------------------------------------
>
> Key: THRIFT-1834
> URL: https://issues.apache.org/jira/browse/THRIFT-1834
> Project: Thrift
> Issue Type: Story
> Components: C++ - Library
> Affects Versions: 0.9
> Environment: Windows x86_64 MSVC 2010
> Reporter: Chris Stylianou
> Priority: Major
> Labels: dll, msvc, thrift, windows
>
> I am unable to build a valid .dll version of the Thrift C++ library using
> MSVC2010 as nothing has been declared with
> "__declspec(dllexport)/__declspec(dllimport)", meaning that MSVC2010 (and
> presumably all other versions) are unable to generate the import .lib that
> should accompany the .dll library.
> Currently the cmake environment only supports building a static library (with
> static or dynamic runtime - you choose with the "WITH_MT" option).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)