Sign in to follow this  
ratha

LNK2005

Recommended Posts

Hi!
I got the following linker error:

Error 196 error LNK1169: one or more multiply defined symbols found D:\Goldminer\Debug\GoldMiner.exe
Error 170 error LNK2005: "int fieldradius" (?fieldradius@@3HA) already defined in Fighter.obj D:\Goldminer\Game.obj
Error 171 error LNK2005: "int fieldradius" (?fieldradius@@3HA) already defined in Fighter.obj D:\Goldminer\GameCreditsState.obj
Error 172 error LNK2005: "int fieldradius" (?fieldradius@@3HA) already defined in Fighter.obj D:\Goldminer\GameHOFMenuState.obj
Error 173 error LNK2005: "int fieldradius" (?fieldradius@@3HA) already defined in Fighter.obj D:\Goldminer\GameIntroState.obj

I've not define fieldradius in Fighter.h. I've defined it globaly in a file called GameManager.h only. Then why do linker report it multiply defined? How to resolve this error?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this