The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

Discussions about using GRAPHISOFT's tools (API DevKit) for independent software developers

Moderators: Karl Ottenstein, LaszloNagy, ejrolon, Barry Kelly, gkmethy, MOREH Tamas, Akos Somorjai, Ed Brown, Mihály Palenik, Tibor Lorántfy, rmasaki

Hi Guys,

I am currently working on the Archicad development and have taken the "Element_Test" example project as a template. With time I put some of my own functions on it and experimented with it.

Now I updated the SDK to version 22 (from version 21). I've updated everything so far (I think), but now I get a message that I can't do anything with:
Code: Select all
LNK2019 unresolved external symbol "__declspec(dllimport) public: __cdecl ProfileVectorImage::~ProfileVectorImage(void)" (__imp_??1ProfileVectorImage@@QEAA@XZ) referenced in function "void __cdecl GS::KillObject<class ProfileVectorImage>(class ProfileVectorImage * &)" (??$KillObject@VProfileVectorImage@@@GS@@YAXAEAPEAVProfileVectorImage@@@Z) Element_Test C:\ArchiCAD21_Sandbox\Sandbox\Element_Test\ACAP_STAT.lib(ACAPlib.obj) 1	
What error LNK2019 means is roughly clear to me, but I don't know where the source of the call is. Does anyone have an idea what I might be looking for?

Best Regards

Hi Patrick,

you have to link your Add-On with VectorImageImp.lib.
Simply add it to your project. You can do that easily by adding the following lines to your .vcxproj project file in a text editor:
Code: Select all
    <Library Include="..\..\Support\Modules\VectorImage\Win\VectorImageImp.lib">