64-bit Link errors - VLONG casting?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/09/2005 at 03:09, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.1
Platform: Windows ;
Language(s) : C++ ;---------
How do I fix these linker errors? Casting to VLONG doesn't seem to be appeasing the linker.animloader.obj : error LNK2019: unresolved external symbol "void __cdecl CopyMem(void *,void *,long)" (?CopyMem@@YAXPEAX0J@Z) referenced in function "public: unsigned char __cdecl AnimLoader::Begin(class BaseDocument *,class AtomArray *,class Filename,class String,long,long,long,long,float,unsigned char,unsigned char)" (?Begin@AnimLoader@@QEAAEPEAVBaseDocument@@PEAVAtomArray@@VFilename@@VString@@JJJJMEE@Z) morphtag.obj : error LNK2001: unresolved external symbol "void __cdecl CopyMem(void *,void *,long)" (?CopyMem@@YAXPEAX0J@Z) entries.obj : error LNK2019: unresolved external symbol "public: long __cdecl BaseFile::ReadBytes(void *,long,int)" (?ReadBytes@BaseFile@@QEAAJPEAXJH@Z) referenced in function "unsigned char __cdecl LoadEntries(void)" (?LoadEntries@@YAEXZ) ipdialog.obj : error LNK2001: unresolved external symbol "public: long __cdecl BaseFile::ReadBytes(void *,long,int)" (?ReadBytes@BaseFile@@QEAAJPEAXJH@Z) filereader.obj : error LNK2019: unresolved external symbol "public: long __cdecl BaseFile::GetLength(void)" (?GetLength@BaseFile@@QEAAJXZ) referenced in function "public: void __cdecl FileReader::Init(class BaseFile *,class Filename)" (?Init@FileReader@@QEAAXPEAVBaseFile@@VFilename@@@Z) filereader.obj : error LNK2019: unresolved external symbol "public: int __cdecl BaseFile::Seek(long,long)" (?Seek@BaseFile@@QEAAHJJ@Z) referenced in function "public: void __cdecl FileReader::SetPosition(long)" (?SetPosition@FileReader@@QEAAXJ@Z) ipdialog.obj : error LNK2001: unresolved external symbol "public: int __cdecl BaseFile::Seek(long,long)" (?Seek@BaseFile@@QEAAHJJ@Z) filereader.obj : error LNK2019: unresolved external symbol "public: long __cdecl BaseFile::GetPosition(void)" (?GetPosition@BaseFile@@QEAAJXZ) referenced in function "public: long __cdecl FileReader::GetPosition(void)" (?GetPosition@FileReader@@QEAAJXZ) grpmats.obj : error LNK2019: unresolved external symbol "void __cdecl ClearMem(void *,long,long)" (?ClearMem@@YAXPEAXJJ@Z) referenced in function "public: unsigned char __cdecl GrpMats::Init(unsigned char)" (?Init@GrpMats@@QEAAEE@Z) ipdialog.obj : error LNK2001: unresolved external symbol "void __cdecl ClearMem(void *,long,long)" (?ClearMem@@YAXPEAXJJ@Z) poserprop.obj : error LNK2001: unresolved external symbol "void __cdecl ClearMem(void *,long,long)" (?ClearMem@@YAXPEAXJJ@Z) ipdialog.obj : error LNK2019: unresolved external symbol "public: int __cdecl BaseFile::WriteBytes(void *,long)" (?WriteBytes@BaseFile@@QEAAHPEAXJ@Z) referenced in function "private: unsigned char __cdecl iPDialog::ReadRSR(class RuntimeItem * )" (?ReadRSR@iPDialog@@AEAAEPEAVRuntimeItem@@@Z) morphtag.obj : error LNK2019: unresolved external symbol "public: int __cdecl HyperFile::ReadMemory(void * *,long * )" (?ReadMemory@HyperFile@@QEAAHPEAPEAXPEAJ@Z) referenced in function "public: virtual int __cdecl MorphTag::Read(class GeListNode *,class HyperFile *,long)" (?Read@MorphTag@@UEAAHPEAVGeListNode@@PEAVHyperFile@@J@Z) morphtag.obj : error LNK2019: unresolved external symbol "public: int __cdecl HyperFile::WriteMemory(void *,long)" (?WriteMemory@HyperFile@@QEAAHPEAXJ@Z) referenced in function "public: virtual int __cdecl MorphTag::Write(class GeListNode *,class HyperFile * )" (?Write@MorphTag@@UEAAHPEAVGeListNode@@PEAVHyperFile@@@Z) ./Commercial/release_9_64/interPoser Ltd.cdl64 : fatal error LNK1120: 9 unresolved externals
Even in places where I've changed a local LONG variable to VLONG variable, it still spews.
Thanks,
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/09/2005 at 04:06, xxxxxxxx wrote:
Ooops. Just found out that not all of the *.cpp preprocessor values were cleared and inherited.
Back to work!