[
https://issues.apache.org/jira/browse/THRIFT-1834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16595874#comment-16595874
]
James E. King III commented on THRIFT-1834:
-------------------------------------------
It's not a trivial amount of work. I have run into the issue myself on
projects and I have always just switched to a static link library. That said,
someone would simply have to start doing the work and submit a PR that allows
for a cmake build with -DBUILD_SHARED_LIBS=ON (which I believe is the standard
way to control shared vs static output for all cmake projects).
> As a developer, I would like a thrift C++ runtime DLL for windows development
> -----------------------------------------------------------------------------
>
> 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
(v7.6.3#76005)