2022-01-31 09:35 PM - last edited on 2022-02-04 12:48 PM by Laszlo Nagy
Hello to all - -
I was able to add an include directory to this project and get the missing file [rs.hpp] to become available for the project. Looking in rs.hpp I am finding a few definitions for RSGetIndString_ParamAdapter and single definitions for RSInitModuleImageCache and for RSRemoveModuleImageCache. However, they do not seem to be adequate and I am receiving "unresolved external symbol" error when trying to build.
Could someone please point me in the right direction to resolve this?
Thanks - Chris
1>JHP_BIMcoord.cpp
1> Creating library Build\x64\Release\JHP_BIMcoord.lib and object Build\x64\Release\JHP_BIMcoord.exp
1>JHP_BIMcoord.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl RSGetIndString_ParamAdapter(char const *,unsigned int,class GS::UniString *,int,int,__int64,enum ResStringType)" (__imp_?RSGetIndString_ParamAdapter@@YA_NPEBDIPEAVUniString@GS@@HH_JW4ResStringType@@@Z) referenced in function CheckEnvironment
1>ACAP_STAT.lib(ACAPlib_.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl RSGetIndString_ParamAdapter(char const *,unsigned int,char *,int,int,__int64,enum ResStringType)" (__imp_?RSGetIndString_ParamAdapter@@YA_NPEBDIPEADHH_JW4ResStringType@@@Z) referenced in function ACAPI_Resource_GetFixStr
1>ACAP_STAT.lib(ACAPlib_.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl RSGetIndString_ParamAdapter(char const *,unsigned int,unsigned short *,int,int,__int64,enum ResStringType)" (__imp_?RSGetIndString_ParamAdapter@@YA_NPEBDIPEAGHH_JW4ResStringType@@@Z) referenced in function ACAPI_Resource_GetLocUStr
1>ACAP_STAT.lib(ACAPlib_.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) __int64 __cdecl RSInitModuleImageCache(__int64)" (__imp_?RSInitModuleImageCache@@YA_J_J@Z) referenced in function "bool __cdecl DllInit(struct DllMainImp_InitContext const *)" (?DllInit@@YA_NPEBUDllMainImp_InitContext@@@Z)
1>ACAP_STAT.lib(ACAPlib_.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl RSRemoveModuleImageCache(__int64)" (__imp_?RSRemoveModuleImageCache@@YAX_J@Z) referenced in function "void __cdecl CloseOwnResFile(void)" (?CloseOwnResFile@@YAXXZ)
1>Build\x64\Release\JHP_BIMcoord.apx : fatal error LNK1120: 5 unresolved externals
Solved! Go to Solution.
2022-02-02 11:20 AM
Hi Chris,
There is a new module named "RS" in the AC25 Development Kit where those functions reside, so please add that library to the linked libraries in the project.
Best, Akos
2022-02-02 11:20 AM
Hi Chris,
There is a new module named "RS" in the AC25 Development Kit where those functions reside, so please add that library to the linked libraries in the project.
Best, Akos
2022-02-02 09:15 PM
Thanks so much Akos. I am still new enough to C++ and the AC API, that I am only starting to understand a difference between edits to source code and configuration of the compiler, and what triggers each as a solution.
- at least it is a bit easier than strings. 🙂
Have a great day and thanks again!
chris