linking error2005 visual studio 2008 c++

后端 未结 2 1680
走了就别回头了
走了就别回头了 2021-01-27 15:38

I had struct errorStruct & a queue errQueue definition in yacc.y , then moved it to separate .h file
but it gives me linking error that the definition is found in both y

2条回答
  •  隐瞒了意图╮
    2021-01-27 16:03

    opss! I forgot to post the answer .. sorry ..

    got it with the help of @Peter K.'s reference :

    go to VS : project -> property page -> configuration properties -> linker ->command line

    and add /FORCE:MULTIPLE in additional options box

提交回复
热议问题