Archived

This topic is now archived and is closed to further replies.

poopface

header problem?

Recommended Posts

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?

Share this post


Link to post
Share on other sites
poopface here,

well if anyone is having this problem - the answer has been posted a few questions below in response to marty666.

Share this post


Link to post
Share on other sites