You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Mario Emmenlauer (Jira)" <ji...@apache.org> on 2020/04/24 09:10:00 UTC

[jira] [Closed] (THRIFT-4759) Minor missing symbol apache::thrift::GlobalOutput for Windows shared library build

     [ https://issues.apache.org/jira/browse/THRIFT-4759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Emmenlauer closed THRIFT-4759.
------------------------------------
      Assignee: James E. King III
    Resolution: Fixed

This has been merged and fixed.

> Minor missing symbol apache::thrift::GlobalOutput for Windows shared library build
> ----------------------------------------------------------------------------------
>
>                 Key: THRIFT-4759
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4759
>             Project: Thrift
>          Issue Type: Improvement
>          Components: C++ - Library
>    Affects Versions: 0.12.0
>            Reporter: Mario Emmenlauer
>            Assignee: James E. King III
>            Priority: Trivial
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> 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:
> {code:java}
> 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{code}
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)