Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

header problem?

Started by poopface Mar 1, 2003 at 5:11 PM 0 replies 300+ views
Original Post
poopface
poopface
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?
poopface
poopface
poopface here,

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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.