[wdmaudiodev] AERT_XXX calls linker error for 32-bit build (ok for 64-bit)

  • From: Culann mac Cabe <culann@xxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Wed, 7 Nov 2018 11:37:54 +0000

Hello wdmaudiodev people.

I am using Visual Studio 2017 to develop a Windows APO driver and I am
seeing a Linker Error (unresolved external symbol 'symbol' referenced in
function 'function
<https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk2019?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev15.query%3FappId%3DDev15IDEF1%26l%3DEN-US%26k%3Dk(LNK2019)%26rd%3Dtrue&view=vs-2017>')
associated with a call to the memory allocation function AERT_Allocate()
<https://docs.microsoft.com/en-us/windows/desktop/api/baseaudioprocessingobject/nf-baseaudioprocessingobject-aert_allocate#requirements>
which
MS recommends/requires for real time functions...

AERT_Allocate links Audioeng.lib and, simply put, my project links
succesfully against the 64 bit lib but I get the above Linker error when
attempting to link against the 32 bit library.  My verbose linker output
shows my paths etc to be correct, so the issue appears to be related to 64
bit vs 32.

Is this a Visual Studio issue/bug or can anyone provide any
suggestions/recommendations?

Thanks!
Culann

Other related posts: