converting project code to MFC

Hey guys, i'm working on a project for school where I have to make a GUI for a text based adventure game that was a previous project. I am trying to create an instance of a class called Player, and I am getting a linkage error. I think it must have something to do with the way I have <include>'d everything, but I can't seem to find the problem. Here is the output from the program, and if i need to post something else from the program please let me know. Thanks.

1>------ Build started: Project: Project 3 - GUI, Configuration: Debug Win32 ------
1>Build started 3/14/2013 5:51:18 PM.
1>InitializeBuildStatus:
1>  Touching "Debug\Project 3 - GUI.unsuccessfulbuild".
1>ClCompile:
1>  All outputs are up-to-date.
1>  All outputs are up-to-date.
1>ResourceCompile:
1>  All outputs are up-to-date.
1>ManifestResourceCompile:
1>  All outputs are up-to-date.
1>stdafx.obj : error LNK2005: "class Player p" (?p@@3VPlayer@@A) already defined in Project 3 - GUIDlg.obj
1>C:\Users\Taylor\documents\visual studio 2010\Projects\Project 3 - GUI\Debug\Project 3 - GUI.exe : fatal error LNK1169: one or more multiply defined symbols found
1>
1>Build FAILED.
1>
Are you declaring global variables in an h-file and including it in multiple C++ files? If so check out __declspec(selectany) and put it in front of each global variable in your h-file.

__declspec(selectany) int SomeGlobalVaribale
Thank you very much! I don't understand that at all but it works!
Topic archived. No new replies allowed.