header problem?
I have a header and cpp file that are included in a vs 6.0 project and they have the proper #ifndef __file__
#define __file__
code
#endif
However, I''m getting errors such as:
main.obj : error LNK2005: "float yPos" (?yPos@@3MA) already defined in game.obj
main.obj : error LNK2005: "float force" (?force@@3MA) already defined in game.obj
when linking, where game is the file I''m linking.
What would be causing this?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement