isDerivedFrom gives a linker error in CLR projects with latest Visual Studio

isDerivedFrom gives a linker error in CLR projects with latest Visual Studio

ow
Enthusiast Enthusiast
218 Views
1 Reply
Message 1 of 2

isDerivedFrom gives a linker error in CLR projects with latest Visual Studio

ow
Enthusiast
Enthusiast

Does anyone have a solution for this? 

 

I get this linker error:

metadata inconsistent with COFF symbol table: symbol '?isDerivedFrom@AcRxClass@@$$FSA_NPEBV1@0@Z' (0A00006F) mapped to '<unknown symbol>' (06000032) in mgPoly.obj

 

With the latest versions of Visual Studio 2022 using ObjectARX 2025. 

 

To replicate:

 

Open the polysamp project, and edit mgPoly.cpp to include isDerivedFrom somewhere:

//////////////////////////////////////////////////////////////////////////
// constructor
Autodesk::ObjectDbxSample::Poly::Poly() 
:Autodesk::AutoCAD::DatabaseServices::Curve(System::IntPtr(new AsdkPoly()), true)
{
    acutPrintf(_T("\n*********************Constructor"));
    if (GetImpObj()->isA()->isDerivedFrom(AcDbCurve::desc()))
    {
		acutPrintf(_T("\nDerived from AcDbCurve"));
    }
}

 

A rollback to Visual studio version 17.8 fixes the problem.

 

 

0 Likes
Accepted solutions (1)
219 Views
1 Reply
Reply (1)
Message 2 of 2

ow
Enthusiast
Enthusiast
Accepted solution