<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic LINK2001 error in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/link2001-error/m-p/13701943#M44066</link>
    <description>&lt;P&gt;I‘m a begginer of objectarx development learner,and I built a new project want to create a simple box ,here is my code&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;#include "stdafx.h"
#include "CreateSolids.h"

void CreateSolids::Init() {
    acedRegCmds-&amp;gt;addCommand(_T("CreateSolidsCommands"), _T("CreateBox"), _T("CreateBox"), ACRX_CMD_MODAL, CreateBoxFunction);
}

void CreateSolids::Unload() {
    acedRegCmds-&amp;gt;removeGroup(_T("CreateSolidsCommands"));
}

void CreateSolids::CreateBoxCommnad() {
    CreateBoxFunction();
}

void CreateSolids::CreateBoxFunction() {
    // box  
    AcDbDatabase* pDb = acdbHostApplicationServices()-&amp;gt;workingDatabase();
    AcDbBlockTable* pBlockTable;
    if (pDb-&amp;gt;getBlockTable(pBlockTable, AcDb::kForWrite) != Acad::eOk) {
        acutPrintf(_T("Failed to get Block Table.\n"));
        return;
    }

    AcDbBlockTableRecord* pModelSpace = nullptr;
    if (pBlockTable-&amp;gt;getAt(ACDB_MODEL_SPACE, pModelSpace, AcDb::kForWrite) != Acad::eOk) {
        acutPrintf(_T("Failed to get Model Space.\n"));
        pBlockTable-&amp;gt;close();
        return;
    }

    AcDb3dSolid* pBox = new AcDb3dSolid();
    if (pBox-&amp;gt;createBox(10.0, 10.0, 10.0) != Acad::eOk) {
        acutPrintf(_T("Failed to create box.\n"));
        pBox-&amp;gt;close();
        pModelSpace-&amp;gt;close();
        pBlockTable-&amp;gt;close();
        return;
    }

    pModelSpace-&amp;gt;appendAcDbEntity(pBox);
    pModelSpace-&amp;gt;close();
    pBlockTable-&amp;gt;close();
}&lt;/LI-CODE&gt;&lt;P&gt;errors like this :&lt;/P&gt;&lt;LI-CODE lang="general"&gt;1&amp;gt;------ Build started: Project: ArxProject1, Configuration: Release x64 ------
1&amp;gt;CreateSolids.cpp
1&amp;gt;   Creating library x64\Release\JOKERArxProject1.lib and object x64\Release\JOKERArxProject1.exp
1&amp;gt;CreateSolids.obj : error LNK2001: unresolved external symbol "public: static void * __cdecl AcDb3dSolid::operator new(unsigned __int64)" (??2AcDb3dSolid@@SAPEAX_K@Z)
1&amp;gt;CreateSolids.obj : error LNK2001: unresolved external symbol "public: static void __cdecl AcDb3dSolid::operator delete(void *)" (??3AcDb3dSolid@@SAXPEAX@Z)
1&amp;gt;CreateSolids.obj : error LNK2001: unresolved external symbol "public: __cdecl AcDb3dSolid::AcDb3dSolid(void)" (??0AcDb3dSolid@@QEAA@XZ)
1&amp;gt;E:\2_else\TempDocuments\VS\projects\ArxProject1\x64\Release\JOKERArxProject1.arx : fatal error LNK1120: 3 unresolved externals
1&amp;gt;Done building project "ArxProject1.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 9:37 and took 03.858 seconds ==========&lt;/LI-CODE&gt;&lt;P&gt;environment settings:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;AutoCad Version: 2026&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;SDK Version: Latest&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;editor Version:VS 2022&lt;/P&gt;&lt;P&gt;project settings:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_0-1751074770192.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1547466i65DBA1F3CD394D77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_0-1751074770192.png" alt="_0-1751074770192.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_1-1751074796520.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1547467iC71E552BF026E3B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_1-1751074796520.png" alt="_1-1751074796520.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_2-1751074848094.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1547468i9A2708FC483F3368/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_2-1751074848094.png" alt="_2-1751074848094.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_3-1751074879215.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1547469iCBB8A878E98ABC10/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_3-1751074879215.png" alt="_3-1751074879215.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How should I solve this.&lt;/P&gt;</description>
    <pubDate>Sat, 28 Jun 2025 01:44:25 GMT</pubDate>
    <dc:creator>孙俊博</dc:creator>
    <dc:date>2025-06-28T01:44:25Z</dc:date>
    <item>
      <title>LINK2001 error</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/link2001-error/m-p/13701943#M44066</link>
      <description>&lt;P&gt;I‘m a begginer of objectarx development learner,and I built a new project want to create a simple box ,here is my code&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;#include "stdafx.h"
#include "CreateSolids.h"

void CreateSolids::Init() {
    acedRegCmds-&amp;gt;addCommand(_T("CreateSolidsCommands"), _T("CreateBox"), _T("CreateBox"), ACRX_CMD_MODAL, CreateBoxFunction);
}

void CreateSolids::Unload() {
    acedRegCmds-&amp;gt;removeGroup(_T("CreateSolidsCommands"));
}

void CreateSolids::CreateBoxCommnad() {
    CreateBoxFunction();
}

void CreateSolids::CreateBoxFunction() {
    // box  
    AcDbDatabase* pDb = acdbHostApplicationServices()-&amp;gt;workingDatabase();
    AcDbBlockTable* pBlockTable;
    if (pDb-&amp;gt;getBlockTable(pBlockTable, AcDb::kForWrite) != Acad::eOk) {
        acutPrintf(_T("Failed to get Block Table.\n"));
        return;
    }

    AcDbBlockTableRecord* pModelSpace = nullptr;
    if (pBlockTable-&amp;gt;getAt(ACDB_MODEL_SPACE, pModelSpace, AcDb::kForWrite) != Acad::eOk) {
        acutPrintf(_T("Failed to get Model Space.\n"));
        pBlockTable-&amp;gt;close();
        return;
    }

    AcDb3dSolid* pBox = new AcDb3dSolid();
    if (pBox-&amp;gt;createBox(10.0, 10.0, 10.0) != Acad::eOk) {
        acutPrintf(_T("Failed to create box.\n"));
        pBox-&amp;gt;close();
        pModelSpace-&amp;gt;close();
        pBlockTable-&amp;gt;close();
        return;
    }

    pModelSpace-&amp;gt;appendAcDbEntity(pBox);
    pModelSpace-&amp;gt;close();
    pBlockTable-&amp;gt;close();
}&lt;/LI-CODE&gt;&lt;P&gt;errors like this :&lt;/P&gt;&lt;LI-CODE lang="general"&gt;1&amp;gt;------ Build started: Project: ArxProject1, Configuration: Release x64 ------
1&amp;gt;CreateSolids.cpp
1&amp;gt;   Creating library x64\Release\JOKERArxProject1.lib and object x64\Release\JOKERArxProject1.exp
1&amp;gt;CreateSolids.obj : error LNK2001: unresolved external symbol "public: static void * __cdecl AcDb3dSolid::operator new(unsigned __int64)" (??2AcDb3dSolid@@SAPEAX_K@Z)
1&amp;gt;CreateSolids.obj : error LNK2001: unresolved external symbol "public: static void __cdecl AcDb3dSolid::operator delete(void *)" (??3AcDb3dSolid@@SAXPEAX@Z)
1&amp;gt;CreateSolids.obj : error LNK2001: unresolved external symbol "public: __cdecl AcDb3dSolid::AcDb3dSolid(void)" (??0AcDb3dSolid@@QEAA@XZ)
1&amp;gt;E:\2_else\TempDocuments\VS\projects\ArxProject1\x64\Release\JOKERArxProject1.arx : fatal error LNK1120: 3 unresolved externals
1&amp;gt;Done building project "ArxProject1.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 9:37 and took 03.858 seconds ==========&lt;/LI-CODE&gt;&lt;P&gt;environment settings:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;AutoCad Version: 2026&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;SDK Version: Latest&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;editor Version:VS 2022&lt;/P&gt;&lt;P&gt;project settings:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_0-1751074770192.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1547466i65DBA1F3CD394D77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_0-1751074770192.png" alt="_0-1751074770192.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_1-1751074796520.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1547467iC71E552BF026E3B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_1-1751074796520.png" alt="_1-1751074796520.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_2-1751074848094.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1547468i9A2708FC483F3368/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_2-1751074848094.png" alt="_2-1751074848094.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_3-1751074879215.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1547469iCBB8A878E98ABC10/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_3-1751074879215.png" alt="_3-1751074879215.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How should I solve this.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jun 2025 01:44:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/link2001-error/m-p/13701943#M44066</guid>
      <dc:creator>孙俊博</dc:creator>
      <dc:date>2025-06-28T01:44:25Z</dc:date>
    </item>
    <item>
      <title>回复： LINK2001 error</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/link2001-error/m-p/13701950#M44067</link>
      <description>&lt;P&gt;This new project built by this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_0-1751075360106.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1547470i1581C1B6F4022844/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_0-1751075360106.png" alt="_0-1751075360106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jun 2025 01:50:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/link2001-error/m-p/13701950#M44067</guid>
      <dc:creator>孙俊博</dc:creator>
      <dc:date>2025-06-28T01:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: LINK2001 error</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/link2001-error/m-p/13702064#M44068</link>
      <description>&lt;P&gt;try adding this in your StdAfx.h, or somewhere in your code if you don't have that&lt;/P&gt;&lt;LI-CODE lang="general"&gt;#pragma comment( lib , "AcPal.lib" )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jun 2025 07:42:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/link2001-error/m-p/13702064#M44068</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2025-06-28T07:42:09Z</dc:date>
    </item>
    <item>
      <title>回复： LINK2001 error</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/link2001-error/m-p/13702656#M44069</link>
      <description>&lt;P&gt;I wrote all .lib names into &lt;STRONG&gt;connector-input.&lt;/STRONG&gt; and it works&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jun 2025 03:36:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/link2001-error/m-p/13702656#M44069</guid>
      <dc:creator>孙俊博</dc:creator>
      <dc:date>2025-06-29T03:36:37Z</dc:date>
    </item>
  </channel>
</rss>

