Linker error when creating plugin from scratch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
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@@@Z)
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.
-Serge

