I stared a visual studio 2010 project from scratch in order to create a plugin for AutoCAD 2013. From what I understand the plugin is essentiall y a DLL with 2 exported functions. I obviously added the paths to both libraries and headers needed to build. However when I build I get these errors:
error LNK2019: unresolved external symbol __imp_acrxSysRegistry referenced in function "void __cdecl unloadApp(void)" (?unloadApp@@YAXXZ)
error LNK2019: unresolved external symbol "public: static class AcRxClass * __cdecl AcEdCommandStack::desc(void)" (?desc@AcEdCommandStack@@SAPEAVAcRxClass@@XZ) referenced in function "public: static class AcEdCommandStack * __cdecl AcEdCommandStack::cast(class AcRxObject const *)" (?cast@AcEdCommandStack@@SAPEAV1@PEBVAcRxObject@@@
error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl AcRxClass::isDerivedFrom(class AcRxClass const *)const " (__imp_?isDerivedFrom@AcRxClass@@QEBA_NPEBV1@@Z) referenced in function "public: bool __cdecl AcRxObject::isKindOf(class AcRxClass const *)const " (?isKindOf@AcRxObject@@QEBA_NPEBVAcRxClass@@@Z)
I looked and found that acrxSysRegistry (which seems to be the source of the pb) is defined as follows:
extern "C" ACBASE_PORT AcRxDictionary* acrxSysRegistry();
I tried a 64 and 32 bit version of the project, same issue, however the projects from the SDK/sample foler seems to work fine.
Any idea what might be going on? Let me know if you need further information.
Thank you for your time.
Simplest way to start development is using ObjectARX Wizard: http://images.autodesk.com/adsk/files/objectarx_wi
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register