Linker error with C++ objectarx 2024

Linker error with C++ objectarx 2024

alain.holloway
Contributor Contributor
839 Views
5 Replies
Message 1 of 6

Linker error with C++ objectarx 2024

alain.holloway
Contributor
Contributor

Hi there,

 

I'm getting this error message when I'm building my C++ project.

 

Error LNK2019 unresolved external symbol "void __cdecl operator delete(void *,enum std::align_val_t)"

 

Any idea why I'm getting this, the error is thrown by the linker when dealing with rxinit.obj of the rxapi.lib library

 

Thank you!!

0 Likes
840 Views
5 Replies
Replies (5)
Message 2 of 6

moogalm
Autodesk Support
Autodesk Support

Did you link with `acpal.lib` ? it's part of SDK  ObjectARX\lib-x64

And may you share your build log.

msbuild /t:build /p:Configuration=Debug;Platform=x64 -fl -flp:logfile=MyProjectOutput.log;verbosity=diagnostic
0 Likes
Message 3 of 6

alain.holloway
Contributor
Contributor

Yes I did, here's a list of all included libraries :

 

acad.lib
rxapi.lib
acge24.lib
acdb24.lib
acui24.lib
adui24.lib
accore.lib
ac1st24.lib
acpal.lib
Xmllite.lib
Version.lib

 

0 Likes
Message 4 of 6

alain.holloway
Contributor
Contributor

Here's the log file as requested.

 

Thank you!

0 Likes
Message 5 of 6

moogalm
Autodesk Support
Autodesk Support

Thanks for sharing the log.

Your project seems to be linking with older SDK too, try removing that. /LIBPATH:"C:\Autodesk\Autodesk_ObjectARX_2017_Win_64_and_32_Bit\lib-x64"


Are you using Visual Studio 2022 with VC 14.3 platform toolset ?

 

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:PROMPT /OUT:"C:\GEBO_Autocad_2024_SetUp\CONVEYOR_TOOLS\Geboequi_2024.arx" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Autodesk\ObjectARX_for_AutoCAD_2024_Win_64bit_dlm\lib-x64" /LIBPATH:"C:\Autodesk\Autodesk_ObjectARX_2017_Win_64_and_32_Bit\lib-x64" acad.lib rxapi.lib acge24.lib acdb24.lib acui24.lib adui24.lib accore.lib ac1st24.lib acpal.lib Xmllite.lib Version.lib acad.lib rxapi.lib acge24.lib acdb24.lib acui24.lib adui24.lib accore.lib ac1st24.lib Xmllite.lib Version.lib /DEF:".\geboequi.def" /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /manifestinput:"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\Include\Manifest\dpiaware.manifest" /DEBUG /PDB:"C:\GEBO_Autocad_2024_SetUp\CONVEYOR_TOOLS\geboequi2024.pdb" /MAP /ASSEMBLYDEBUG /SUBSYSTEM:WINDOWS /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\Administrator\Desktop\Code\GeboCAD_Atcd2024\x64\Debug Autocad 2024\Geboequi.lib" /MACHINE:X64 /DLL "x64\Debug Autocad 2024\geboequi.res"
AdditionalLibraryDirectories=C:\Autodesk\ObjectARX_for_AutoCAD_2024_Win_64bit_dlm\lib-x64;C:\Autodesk\Autodesk_ObjectARX_2017_Win_64_and_32_Bit\lib-x64;

 

 

 

0 Likes
Message 6 of 6

tbrammer
Advisor
Advisor

This problem can also occur if you have _DEBUG defined while including STL or Windows headers.

If your release build works try to undefine _DEBUG while including these headers as explained here.

Also make sure that you don't link to debug libs explicitly.


Thomas Brammer ● Software Developer ● imos AGLinkedIn
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.

0 Likes