#include "include/utils.h"
//===========================================================================
//Generates a unique hash number for a string
//===========================================================================
irr::u32 stringHash(irr::c8* string)
{
irr::u32 hash = 5381;
int c;
while (c = *string++)
hash = ((hash << 5) + hash) + c;// hash * 33 + c
return hash;
}
That's the code I'm using. The library that it's in builds fine and everything. But when I try to use the library in another project, I get this error: error LNK2001: unresolved external symbol "unsigned int __cdecl engine::utils::stringHash(char *)" (?stringHash@utils@engine@@YAIPAD@Z). Does anyone know what's wrong?
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.