Arizona_Steve Posted February 14, 2016 Posted February 14, 2016 I am in the process of moving my Random Sex evaluator code into an SKSE plugin so that I can add new functionality that I have had planned for the last year or so. I am a (java) developer by trade, so I can crunch code with the best of them. However I am having major issues with the C++ linker and none of the SKSE plugin guides give any indication as to how to resolve the errors. As a first step I am trying to port part of the Random Sex configuration to a C++ class. I am using Visual C++ 2013 (2015 refuses to install on my machine for some reason). Would appreciate some help on this. Error 2 error LNK2019: unresolved external symbol "void * __cdecl FormHeap_Allocate(unsigned long)" (?FormHeap_Allocate@@YAPAXK@Z) referenced in function "public: static void * __cdecl NativeFunctionBase::operator new(unsigned int)" (??2NativeFunctionBase@@SAPAXI@Z) C:\Visual Studio\AZS00RandomSex\azs00randomsex\AZS00ConfigWrapper.obj azs00randomsex Error 3 error LNK2019: unresolved external symbol "void __cdecl FormHeap_Free(void *)" (?FormHeap_Free@@YAXPAX@Z) referenced in function "public: static void __cdecl NativeFunctionBase::operator delete(void *)" (??3NativeFunctionBase@@SAXPAX@Z) C:\Visual Studio\AZS00RandomSex\azs00randomsex\AZS00ConfigWrapper.obj azs00randomsex Error 4 error LNK2019: unresolved external symbol "void __cdecl PackValue<float>(class VMValue *,float *,class VMClassRegistry *)" (??$PackValue@M@@YAXPAVVMValue@@PAMPAVVMClassRegistry@@@Z) referenced in function "public: virtual bool __thiscall NativeFunction0<struct StaticFunctionTag,float>::Run(class VMValue *,class VMClassRegistry *,unsigned long,class VMValue *,class VMState *)" (?Run@?$NativeFunction0@UStaticFunctionTag@@M@@UAE_NPAVVMValue@@PAVVMClassRegistry@@K0PAVVMState@@@Z) C:\Visual Studio\AZS00RandomSex\azs00randomsex\AZS00ConfigWrapper.obj azs00randomsex Error 5 error LNK2019: unresolved external symbol "void __cdecl PackValue<bool>(class VMValue *,bool *,class VMClassRegistry *)" (??$PackValue@_N@@YAXPAVVMValue@@PA_NPAVVMClassRegistry@@@Z) referenced in function "public: virtual bool __thiscall NativeFunction0<struct StaticFunctionTag,bool>::Run(class VMValue *,class VMClassRegistry *,unsigned long,class VMValue *,class VMState *)" (?Run@?$NativeFunction0@UStaticFunctionTag@@_N@@UAE_NPAVVMValue@@PAVVMClassRegistry@@K0PAVVMState@@@Z) C:\Visual Studio\AZS00RandomSex\azs00randomsex\AZS00ConfigWrapper.obj azs00randomsex Error 6 error LNK2019: unresolved external symbol "void __cdecl UnpackValue<float>(float *,class VMValue *)" (??$UnpackValue@M@@YAXPAMPAVVMValue@@@Z) referenced in function "public: virtual bool __thiscall NativeFunction1<struct StaticFunctionTag,void,float>::Run(class VMValue *,class VMClassRegistry *,unsigned long,class VMValue *,class VMState *)" (?Run@?$NativeFunction1@UStaticFunctionTag@@XM@@UAE_NPAVVMValue@@PAVVMClassRegistry@@K0PAVVMState@@@Z) C:\Visual Studio\AZS00RandomSex\azs00randomsex\AZS00ConfigWrapper.obj azs00randomsex Error 7 error LNK2019: unresolved external symbol "void __cdecl UnpackValue<bool>(bool *,class VMValue *)" (??$UnpackValue@_N@@YAXPA_NPAVVMValue@@@Z) referenced in function "public: virtual bool __thiscall NativeFunction1<struct StaticFunctionTag,void,bool>::Run(class VMValue *,class VMClassRegistry *,unsigned long,class VMValue *,class VMState *)" (?Run@?$NativeFunction1@UStaticFunctionTag@@X_N@@UAE_NPAVVMValue@@PAVVMClassRegistry@@K0PAVVMState@@@Z) C:\Visual Studio\AZS00RandomSex\azs00randomsex\AZS00ConfigWrapper.obj azs00randomsex Error 8 error LNK2019: unresolved external symbol "void * __cdecl UnpackHandle(class VMValue *,unsigned long)" (?UnpackHandle@@YAPAXPAVVMValue@@K@Z) referenced in function "void __cdecl UnpackValue<struct StaticFunctionTag>(struct StaticFunctionTag * *,class VMValue *)" (??$UnpackValue@UStaticFunctionTag@@@@YAXPAPAUStaticFunctionTag@@PAVVMValue@@@Z) C:\Visual Studio\AZS00RandomSex\azs00randomsex\AZS00ConfigWrapper.obj azs00randomsex Error 9 error LNK2019: unresolved external symbol "unsigned long __cdecl GetTypeID<void>(class VMClassRegistry *)" (??$GetTypeID@X@@YAKPAVVMClassRegistry@@@Z) referenced in function "public: void __thiscall NativeFunction1<struct StaticFunctionTag,void,int>::InitParams(class VMClassRegistry *)" (?InitParams@?$NativeFunction1@UStaticFunctionTag@@XH@@QAEXPAVVMClassRegistry@@@Z) C:\Visual Studio\AZS00RandomSex\azs00randomsex\AZS00ConfigWrapper.obj azs00randomsex Error 10 error LNK2019: unresolved external symbol "unsigned long __cdecl GetTypeID<int>(class VMClassRegistry *)" (??$GetTypeID@H@@YAKPAVVMClassRegistry@@@Z) referenced in function "public: void __thiscall NativeFunction0<struct StaticFunctionTag,int>::InitParams(class VMClassRegistry *)" (?InitParams@?$NativeFunction0@UStaticFunctionTag@@H@@QAEXPAVVMClassRegistry@@@Z) C:\Visual Studio\AZS00RandomSex\azs00randomsex\AZS00ConfigWrapper.obj azs00randomsex Error 11 error LNK2019: unresolved external symbol "unsigned long __cdecl GetTypeID<float>(class VMClassRegistry *)" (??$GetTypeID@M@@YAKPAVVMClassRegistry@@@Z) referenced in function "public: void __thiscall NativeFunction0<struct StaticFunctionTag,float>::InitParams(class VMClassRegistry *)" (?InitParams@?$NativeFunction0@UStaticFunctionTag@@M@@QAEXPAVVMClassRegistry@@@Z) C:\Visual Studio\AZS00RandomSex\azs00randomsex\AZS00ConfigWrapper.obj azs00randomsex Error 12 error LNK2019: unresolved external symbol "unsigned long __cdecl GetTypeID<bool>(class VMClassRegistry *)" (??$GetTypeID@_N@@YAKPAVVMClassRegistry@@@Z) referenced in function "public: void __thiscall NativeFunction0<struct StaticFunctionTag,bool>::InitParams(class VMClassRegistry *)" (?InitParams@?$NativeFunction0@UStaticFunctionTag@@_N@@QAEXPAVVMClassRegistry@@@Z) C:\Visual Studio\AZS00RandomSex\azs00randomsex\AZS00ConfigWrapper.obj azs00randomsex Error 13 error LNK2019: unresolved external symbol "public: void __thiscall NativeFunction::DebugRunHook(class VMValue *,class VMClassRegistry *,unsigned long,class VMValue *,class VMState *)" (?DebugRunHook@NativeFunction@@QAEXPAVVMValue@@PAVVMClassRegistry@@K0PAVVMState@@@Z) referenced in function "public: virtual bool __thiscall NativeFunction0<struct StaticFunctionTag,int>::Run(class VMValue *,class VMClassRegistry *,unsigned long,class VMValue *,class VMState *)" (?Run@?$NativeFunction0@UStaticFunctionTag@@H@@UAE_NPAVVMValue@@PAVVMClassRegistry@@K0PAVVMState@@@Z) C:\Visual Studio\AZS00RandomSex\azs00randomsex\AZS00ConfigWrapper.obj azs00randomsex Error 14 error LNK2019: unresolved external symbol "void __cdecl PackValue<int>(class VMValue *,int *,class VMClassRegistry *)" (??$PackValue@H@@YAXPAVVMValue@@PAHPAVVMClassRegistry@@@Z) referenced in function "public: virtual bool __thiscall NativeFunction0<struct StaticFunctionTag,int>::Run(class VMValue *,class VMClassRegistry *,unsigned long,class VMValue *,class VMState *)" (?Run@?$NativeFunction0@UStaticFunctionTag@@H@@UAE_NPAVVMValue@@PAVVMClassRegistry@@K0PAVVMState@@@Z) C:\Visual Studio\AZS00RandomSex\azs00randomsex\AZS00ConfigWrapper.obj azs00randomsex Error 15 error LNK2019: unresolved external symbol "void __cdecl UnpackValue<int>(int *,class VMValue *)" (??$UnpackValue@H@@YAXPAHPAVVMValue@@@Z) referenced in function "public: virtual bool __thiscall NativeFunction1<struct StaticFunctionTag,void,int>::Run(class VMValue *,class VMClassRegistry *,unsigned long,class VMValue *,class VMState *)" (?Run@?$NativeFunction1@UStaticFunctionTag@@XH@@UAE_NPAVVMValue@@PAVVMClassRegistry@@K0PAVVMState@@@Z) C:\Visual Studio\AZS00RandomSex\azs00randomsex\AZS00ConfigWrapper.obj azs00randomsex Error 16 error LNK1120: 14 unresolved externals C:\Visual Studio\AZS00RandomSex\Debug\azs00randomsex.dll azs00randomsex 17 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameCamera.h 189 1 skse 18 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameCamera.h 190 1 skse 19 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameCamera.h 246 1 skse 20 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameCamera.h 280 1 skse 21 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameCamera.h 345 1 skse 22 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameCamera.h 346 1 skse 23 IntelliSense: incomplete type is not allowed c:\Visual Studio\AZS00RandomSex\skse\GameFormComponents.h 1062 1 skse 24 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameFormComponents.h 1189 1 skse 25 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameFormComponents.h 1190 1 skse 26 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameFormComponents.h 1191 1 skse 27 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameFormComponents.h 1232 1 skse 28 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameForms.h 2154 1 skse 29 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameForms.h 2299 1 skse 30 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameForms.h 2300 1 skse 31 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameForms.h 2424 1 skse 32 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameForms.h 2779 1 skse 33 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameInput.h 110 1 skse 34 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameInput.h 221 1 skse 35 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameInput.h 222 1 skse 36 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameInput.h 223 1 skse 37 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameInput.h 241 1 skse 38 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameMenus.h 207 1 skse 39 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameMenus.h 208 1 skse 40 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameMenus.h 270 1 skse 41 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameMenus.h 271 1 skse 42 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameMenus.h 272 1 skse 43 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameMenus.h 273 1 skse 44 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameMenus.h 384 1 skse 45 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameMenus.h 465 1 skse 46 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameMenus.h 878 1 skse 47 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameMenus.h 879 1 skse 48 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameMenus.h 880 1 skse 49 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameReferences.h 263 1 skse 50 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameReferences.h 497 1 skse 51 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameReferences.h 498 1 skse 52 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameReferences.h 499 1 skse 53 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameReferences.h 500 1 skse 54 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameReferences.h 501 1 skse 55 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameReferences.h 583 1 skse 56 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameReferences.h 584 1 skse 57 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameReferences.h 585 1 skse 58 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameReferences.h 586 1 skse 59 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameReferences.h 587 1 skse 60 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameReferences.h 588 1 skse 61 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameReferences.h 589 1 skse 62 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameReferences.h 590 1 skse 63 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\GameReferences.h 591 1 skse 64 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\NiNodes.h 76 1 skse 65 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\NiNodes.h 77 1 skse 66 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\NiNodes.h 164 1 skse 67 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\NiNodes.h 165 1 skse 68 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\NiObjects.h 298 1 skse 69 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\NiObjects.h 310 1 skse 70 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\NiObjects.h 333 1 skse 71 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\NiObjects.h 334 1 skse 72 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\PapyrusVM.h 537 1 skse 73 IntelliSense: this operator is not allowed in a constant expression c:\Visual Studio\AZS00RandomSex\skse\PapyrusVM.h 646 1 skse EDIT: Thought I had this in the Technical Support forum. Moderators, feel free to move this.
Arizona_Steve Posted February 15, 2016 Author Posted February 15, 2016 This can probably be closed. My biggest problem seemed to center around using int instead of UInt32 in my code. I am able to compile and link azs00randomsex.dll without any compile or link errors now. Onto writing the serialization and deserialization code for the configuration, then to test that part via Papyrus. Only took me two and a half days to figure out Yay!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.