[
https://issues.apache.org/jira/browse/THRIFT-5654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17860810#comment-17860810
]
Eyüp Volkan commented on THRIFT-5654:
-------------------------------------
this problem (LNK2019) seems to be related to (visual studio) project settings
of compiler. when you add "go_validator_generator.cc" & "validator_parser.cc"
to the compiler project (as follows), it compiles fine...
{code:java}
<ClCompile Include="src\thrift\generate\go_validator_generator.cc" />
<ClCompile Include="src\thrift\generate\validator_parser.cc" /> {code}
> 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)