C++. Need help. [message #334859] |
Thu, 12 June 2008 08:00  |
HeavyX101- Left
Messages: 633 Registered: April 2008 Location: WindowsJail=ZipFolder
Karma: 0
|
Colonel |
|
|
Today i was doing something on c++ and that thing didnt work. Then i deleted that code and stuff and then a builded the project and got errors. Then i tried to uninstall the SSGM source and then try again. No, the errors still show up even if i unstall the source.
These are the errors:
Quote: | gmcommandclass.obj : error LNK2005: "float __cdecl GetValue(char const *)" (?GetValue@@YAMPBD@Z" target="_blank">>@Z) already defined in engine_gm.obj
gmcrate.obj : error LNK2005: "float __cdecl GetValue(char const *)" (?GetValue@@YAMPBD@Z" target="_blank">>@Z) already defined in engine_gm.obj
gmctf.obj : error LNK2005: "float __cdecl GetValue(char const *)" (?GetValue@@YAMPBD@Z" target="_blank">>@Z) already defined in engine_gm.obj
gmfunc.obj : error LNK2005: "float __cdecl GetValue(char const *)" (?GetValue@@YAMPBD@Z" target="_blank">>@Z) already defined in engine_gm.obj
gmgamelog.obj : error LNK2005: "float __cdecl GetValue(char const *)" (?GetValue@@YAMPBD@Z" target="_blank">>@Z) already defined in engine_gm.obj
gmkeyhook.obj : error LNK2005: "float __cdecl GetValue(char const *)" (?GetValue@@YAMPBD@Z" target="_blank">>@Z) already defined in engine_gm.obj
gmsettingsclass.obj : error LNK2005: "float __cdecl GetValue(char const *)" (?GetValue@@YAMPBD@Z" target="_blank">>@Z) already defined in engine_gm.obj
dllmain.obj : error LNK2005: "float __cdecl GetValue(char const *)" (?GetValue@@YAMPBD@Z" target="_blank">>@Z) already defined in engine_gm.obj
|
This account is no longer being active.
|
|
|
|
|
|
Re: C++. Need help. [message #334873 is a reply to message #334859] |
Thu, 12 June 2008 09:04   |
 |
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
I'm pretty sure he is trying to call this function:
float GetValue(const char* Preset) {
float VehValue = 0;
if (stricmp(Preset,"test") == 0) VehValue = 1;
else if (stricmp(Preset,"GDI Harvester MP2") == 0) VehValue = 300;
else if (stricmp(Preset,"GDI Harverster MP") == 0) VehValue = 300;
else if (stricmp(Preset,"GDI Titan") == 0) VehValue = 700;
else if (stricmp(Preset,"GDI Wolverine") == 0) VehValue = 300;
else if (stricmp(Preset,"GDI Orca") == 0) VehValue = 500;
else if (stricmp(Preset,"GDI Orca Bomber") == 0) VehValue = 500;
else if (stricmp(Preset,"NOD Harverster MP") == 0) VehValue = 300;
else if (stricmp(Preset,"Nod TickTank TS") == 0) VehValue = 550;
else if (stricmp(Preset,"Nod TickTank") == 0) VehValue = 525;
else if (stricmp(Preset,"Nod Buggy") == 0) VehValue = 200;
else if (stricmp(Preset,"GDI Titan TS") == 0) VehValue = 600;
else if (stricmp(Preset,"Nod TickTank TS") == 0) VehValue = 550;
else if (stricmp(Preset,"Nod Buggy TS") == 0) VehValue = 250;
return VehValue;
}
But he seems to be getting really confused.
|
|
|
Re: C++. Need help. [message #334874 is a reply to message #334873] |
Thu, 12 June 2008 09:13   |
HeavyX101- Left
Messages: 633 Registered: April 2008 Location: WindowsJail=ZipFolder
Karma: 0
|
Colonel |
|
|
NOO. Guys, i ve uninstaller every thing and i'm using a new ssgm source. But i tested the new ssgm source and i get those errors when i'm trying to build it.
This account is no longer being active.
|
|
|
|
|
|
Re: C++. Need help. [message #334917 is a reply to message #334859] |
Thu, 12 June 2008 12:29  |
cnc95fan
Messages: 1261 Registered: July 2007
Karma: 0
|
General (1 Star) |
|
|
Yes, you probably installed them wrong. Also, it's ironic how your brother is asking to rejoin BFD. Though.. I'm not sure we will let him.
|
|
|