I am trying to use CloneObject to speed up the loading of my level, but it doesn't seem to be working.
I load my "to-be-cloned" objects at the beginning of the program and when objects need to be created, I have them cloned from the originals.
The app runs, but no objects show up
This how I try cloning them:
dbCloneObject(objID,OBJ_FLOOR);
I tried turning on the "iCloneSharedData" flag by changing it to:
dbCloneObject(objID,OBJ_FLOOR,1);
But doing that, I get this during compile:
Quote: "1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbCloneObject(int,int,int)" (?dbCloneObject@@YAXHHH@Z) referenced in function "void __cdecl makefloor(int,int,int,int)" (?makefloor@@YAXHHHH@Z)"
Any ideas what's going on here?
If I don't clone the object and just load it, it works fine. Also, the clone object is used in a header file, while the parent object is loaded in the Main.cpp file, if that makes a difference.
The one and only,