@psyco001, I don't think so... Everything seems to be allright!
Okay guys, here's how you can recreate the problem:
1) Open the VS solution for Tutorials provided with the engine.
2) Open this tutorial:
Tutorials\Source\Advanced\5 - Projects\02 - Inventory.
3) Create a header file called "Functions.h" (for example) and define some function there:
Code:
void function(bool &variable)
{
variable = true;
}
4) Add the function's header file to the project.
5) Put
#include "Functions.h" in "Main.h" header file so that the function's header is included in all *.cpp files.
6) Try to compile...
It seems to return an errors of this sort:
Code:
1>Inventory.obj : error LNK2005: "void __cdecl function(bool)" (?function@@YAX_N@Z) already defined in Inventory Gui.obj
1>Item.obj : error LNK2005: "void __cdecl function(bool)" (?function@@YAX_N@Z) already defined in Inventory Gui.obj
1>Main.obj : error LNK2005: "void __cdecl function(bool)" (?function@@YAX_N@Z) already defined in Inventory Gui.obj
1>Player.obj : error LNK2005: "void __cdecl function(bool)" (?function@@YAX_N@Z) already defined in Inventory Gui.obj
1>Tutorials.exe : fatal error LNK1169: one or more multiply defined symbols found
and "(...) defined in Inventory Gui.obj" part is the name of the first *.cpp file in the project - this time it's "Inventory Gui.cpp" while in my project it's "Game.cpp".