linking error2005 visual studio 2008 c++
问题 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 yacc.obj and node.obj !! tried creating new solution but still gives the same error Error 9 error LNK2005: "class std::queue<struct errorStruct,class std::deque<struct errorStruct,class std::allocator<struct errorStruct> > > errQueue" (?errQueue@@3V?$queue@UerrorStruct@@V? $deque@UerrorStruct@@V?$allocator@UerrorStruct@@@std@@