texture.obj : error LNK2005: “bool __cdecl CreateTextureMap(unsigned int *,char *)” (?CreateTextureMap@@YA_NPAIPAD@Z) already defined in parthenon.obj
Debug/parthenon.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
I dunno what I did wrong …I included all the necessary files…
Hmmm, I guess you did what the error message says you did You have defined the function CreateTextureMap twice, one time in
texture.obj and one time in parthenon.obj.
did you intend CreateTextureMap() to be an inline function? is it defined in a header file? If so, that’s your problem. You need to either define it in a .cpp file, or you need to add an inline keyword.