Heyy Daniweb,

Got a project I'm trying to compile and I'm getting the following errors:

--------------------Configuration: rpg - Win32 Debug--------------------
Compiling...
rrrrrrrrrrrrrr.cpp
Walking.cpp
H:\final project\rpg\Walking.cpp(551) : warning C4715: 'See' : not all control paths return a value
Linking...
Walking.obj : error LNK2005: _main already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: _clrscr already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: _setfchcol already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: _setchcol already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: _gotoxy already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: _clreol already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "void __cdecl randomize(void)" (?randomize@@YAXXZ) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int __cdecl random(int)" (?random@@YAHH@Z) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::Weapon3x" (?Weapon3x@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::choosecharacter" (?choosecharacter@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::enemy" (?enemy@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::Good" (?Good@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "char const * * var::argv" (?argv@var@@3PAPBDA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::pShields" (?pShields@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "bool var::Sucker" (?Sucker@var@@3_NA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::BadName" (?BadName@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::GoodName" (?GoodName@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::argc" (?argc@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::level" (?level@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::Name" (?Name@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::enemyHealth" (?enemyHealth@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::Evil" (?Evil@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::Weapon" (?Weapon@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::playeraction" (?playeraction@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrr
rrrrrrr.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::Weaponx" (?Weaponx@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrrr.ob
j
Walking.obj : error LNK2005: "bool var::SonicDrowns" (?SonicDrowns@var@@3_NA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "float var::enemyShields" (?enemyShields@var@@3MA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "bool var::eng" (?eng@var@@3_NA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::Answer" (?Answer@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::Wep" (?Wep@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "float var::totaldamage" (?totaldamage@var@@3MA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "float var::dmg" (?dmg@var@@3MA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::Number" (?Number@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "bool var::GameOver" (?GameOver@var@@3_NA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "bool var::KeyPress" (?KeyPress@var@@3_NA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::munition" (?munition@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrrr.
obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::Weapon2" (?Weapon2@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrrr.ob
j
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::Weapon1" (?Weapon1@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrrr.ob
j
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::WeaponHas" (?WeaponHas@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrr
r.obj
Walking.obj : error LNK2005: "int var::ochch" (?ochch@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::NumberAnswer3" (?NumberAnswer3@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::NumberAnswer" (?NumberAnswer@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::NumberAnswer2" (?NumberAnswer2@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::enemyhas" (?enemyhas@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrrr.
obj
Walking.obj : error LNK2005: "int var::playerHealth" (?playerHealth@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::eShields" (?eShields@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::AWeapon" (?AWeapon@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrrr.ob
j
Walking.obj : error LNK2005: "int var::qqqqq" (?qqqqq@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::object" (?object@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::AHealth" (?AHealth@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "bool var::ByPass" (?ByPass@var@@3_NA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::playerHas" (?playerHas@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrr
r.obj
Walking.obj : error LNK2005: "int var::numofene" (?numofene@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::AShields" (?AShields@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::name" (?name@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::enemyHas" (?enemyHas@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrrr.
obj
Walking.obj : error LNK2005: "int var::playerShields" (?playerShields@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::ahas" (?ahas@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::ashields" (?ashields@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::Enemies" (?Enemies@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrrr.ob
j
Walking.obj : error LNK2005: "int var::enemydmg" (?enemydmg@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::playerhas" (?playerhas@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrr
r.obj
Walking.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > var::AWeapon2" (?AWeapon2@var@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) already defined in rrrrrrrrrrrrrr.
obj
Walking.obj : error LNK2005: "bool var::NoWeapons" (?NoWeapons@var@@3_NA) already defined in rrrrrrrrrrrrrr.obj
Walking.obj : error LNK2005: "int var::numclips" (?numclips@var@@3HA) already defined in rrrrrrrrrrrrrr.obj
Debug/rpg.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

rpg.exe - 66 error(s), 1 warning(s)

Also, I've attached the two main files of my program.

Here is my custom namespace (Used for my variables)

namespace var
{
	string enemyHas, playerHas, playerhas, enemy, enemyhas, Weapon, Weapon2, object; 
	string munition, playeraction, WeaponHas, name, ahas, AWeapon, AWeapon2, Answer;
	string Weapon1, Weaponx, Enemies, Wep, Name;
	int enemyHealth, eShields, playerShields, playerHealth, BadName, GoodName;
	int pShields, ochch, argc, choosecharacter, level, enemydmg, AHealth;
	int numofene, AShields, ashields, numclips, qqqqq, NumberAnswer, NumberAnswer3, NumberAnswer2;
	int Weapon3x, Number, Evil, Good;
	const char** argv;
	float enemyShields, dmg, totaldamage;
	bool eng, NoWeapons, GameOver, Sucker, ByPass, SonicDrowns, KeyPress;
}

And my header file (used for my #include's)

#define BLACK 0
#define BLUE 1
#define GREEN 2
#define CYAN 3
#define RED 4
#define MAGENTA 5
#define BROWN 6
#define LIGHTGREY 7
#define DARKGREY 8
#define LIGHTBLUE 9
#define LIGHTGREEN 10
#define LIGHTCYAN 11
#define LIGHTRED 12
#define LIGHTMAGENTA 13
#define YELLOW 14
#define WHITE 15
#define BLINK 128
#include <H:\lvp\irrKlang-1.3.0\inc\irrKlang.h> //for use with VC++ only
#include <windows.h>
#include <string>
#include <iostream>
#include <stdio.h>
#include <cstdlib>
#include <H:\lvp\conio.h>
#include <H:\lvp\matrix.h>                
#include <H:\lvp\vector.h>
#include <H:\lvp\random.h>
#include <H:\final project\rpg\fff.h>
#pragma comment(lib, "H:\\lvp\\irrKlang-1.3.0\\irrKlang.lib")

using namespace std;
using namespace irrklang;
using namespace var;

It is very important I figure out the problem within a couple hours, I need this for school!

Thanks,
spartan118

Also, I've attached the two main files of my program.

Why do you have two main functions? That's going to screw everything up. Besides that, make sure you have #ifndef guards in your header files. If you try to define something twice, it screws the linkage up, so normally you put something like this at the top of the header file:

#ifndef HEADERS_H
#define HEADERS_H

then this at the bottom:

#endif