Thanks, but there are a few more:
Code: Select all
12>LuaOpenGL.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>SMFGroundDrawer.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>SMFRenderState.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>AdvTreeDrawer.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>AdvTreeGenerator.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>BumpWater.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>GrassDrawer.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>GroundDecalHandler.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>DecalsDrawerGL4.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>FeatureDrawer.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>LightHandler.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>ModelDrawer.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>ProjectileDrawer.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>GLSLCopyState.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>Shader.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>ShaderHandler.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>ShadowHandler.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>UnitDrawer.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12>UnitDrawerState.obj : error LNK2005: "unsigned int __cdecl hashString(char const *,unsigned int)" (?hashString@@YAIPBDI@Z) already defined in UnsyncedGameCommands.obj
12> Creating library S:/spring_95_source/spring/rts/builds/legacy/Release/spring.lib and object S:/spring_95_source/spring/rts/builds/legacy/Release/spring.exp
12>S:\spring_95_source\spring\Release\spring.exe : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 11 succeeded, 1 failed, 8 up-to-date, 0 skipped ==========
NOTE: I had to remove the constexpr qualifier from hashString as msvc does not support it.
EDIT: changing constexpr to static got me a successful compile. Thanks!