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
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
/FORCE:MULTIPLE