ObjectARX 2022: acHeapAlloc/acHeapFree LNK2001

ObjectARX 2022: acHeapAlloc/acHeapFree LNK2001

dario_bellinazzi
Participant Participant
4,584 Views
4 Replies
Message 1 of 5

ObjectARX 2022: acHeapAlloc/acHeapFree LNK2001

dario_bellinazzi
Participant
Participant

Hello,
on our HLR api implementation I get LNK2001 error on acHeapAlloc and acHeapFree definitions:

LNK2001 external symbol unresolved "void __cdecl acHeapFree(void *,void *)"
(?acHeapFree@@YAXPEAX0@Z)

LNK2001 external symbol unresolved "void * __cdecl acHeapAlloc(void *,unsigned __int64)"
(?acHeapAlloc@@YAPEAXPEAX_K@Z)

I get this only on when compiling with ObjectARX 2022, previous versions works fine. I've double checked inclusion/libs directories and additional dependencies, all seems equivalent to our ObjectARX 2021 configuration.

Thank you for your support.

Accepted solutions (1)
4,585 Views
4 Replies
  • 2022
Replies (4)
Message 2 of 5

moogalm
Autodesk Support
Autodesk Support
Accepted solution

Can you please try linking with ~\ObjectARX2022\lib-x64\AcPal.lib

Message 3 of 5

dario_bellinazzi
Participant
Participant
Thank you Madhukar,
I confirm that linking AcPal.Lib fixes our linking problem.
Message 4 of 5

phenriet
Enthusiast
Enthusiast

Hi,
worked well for me too, thanks !

0 Likes
Message 5 of 5

john4TMYX
Enthusiast
Enthusiast

Thank you. It works for me as well.

0 Likes