You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2023/07/15 09:48:00 UTC

[jira] [Commented] (THRIFT-5654) LNK4042 and LNK2019 in go_validator_generator.cc

    [ https://issues.apache.org/jira/browse/THRIFT-5654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17743367#comment-17743367 ] 

Jens Geyer commented on THRIFT-5654:
------------------------------------

Impact: Since I can't build the compiler with this thing enabled, the Win32 prebuilt EXE comes without it. 

Workaround: Try building the compiler yourself, if you need it.

PS: If you find a fix, send a PR. Thank you.

> LNK4042 and LNK2019 in go_validator_generator.cc
> ------------------------------------------------
>
>                 Key: THRIFT-5654
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5654
>             Project: Thrift
>          Issue Type: Bug
>          Components: Go - Compiler
>         Environment: Visual Studio 2022
>            Reporter: Jens Geyer
>            Priority: Critical
>
> With VS2022  I get "warning LNK4042: object specified more than once; extras ignored" in go_validator_generator.obj.
> Also I had to comment out this to get rid of some fatal LNK2019: unresolved external symbol:
> //go_validator_generator(this).generate_struct_validator(f_types_, tstruct); 
> Extra info:
> https://stackoverflow.com/questions/3695174/visual-studio-2010s-strange-warning-lnk4042



--
This message was sent by Atlassian Jira
(v8.20.10#820010)