IID_IXAudio2 not being exported.
  Home FAQ Contact Sign in
microsoft.public.win32.programmer.directx.audio only
 
Advanced search
POPULAR GROUPS

more...

microsoft ... directx.audio Profile…
 Up
IID_IXAudio2 not being exported.         


Author: Washu Hibiki
Date: May 13, 2008 13:27

When attempting to use IID_IXAudio2 you will get a linker error, this happens
irregardless of the libraries added to the build. As a simple example, add a
single line to main in XAudio2BasicSound such that it reads:
GUID g = IID_IXAudio2;
You will get a linker error:
1>XAudio2BasicSound.obj : error LNK2001: unresolved external symbol
_IID_IXAudio2
1>\Samples\C++\XAudio2\XAudio2BasicSound\Debug\XAudio2BasicSound.exe : fatal
error LNK1120: 1 unresolved externals

We encountered this while writing the XAudio2 support modules for SlimDX.
4 Comments
Re: IID_IXAudio2 not being exported.         


Date: May 13, 2008 14:20

On Tue, 13 May 2008 13:27:02 -0700, Washu Hibiki wrote:
> GUID g = IID_IXAudio2;
> You will get a linker error:
>>XAudio2BasicSound.obj : error LNK2001: unresolved external symbol

Try using:

GUID g = __uuidof(IXAudio2); // there are two underscores :)

instead.

--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution
no comments
Re: IID_IXAudio2 not being exported.         


Author: Washu Hibiki
Date: May 13, 2008 23:06

Yes, this is roughly the solution we ended up going with. I was just bringing
it up since I consider it a bug in the framework (exposing the IID, but not
actually exporting it). I couldn't remember where to post such bug reports,
so posted it here.

"The March Hare [MVP]" wrote:
Show full article (0.83Kb)
no comments
Re: IID_IXAudio2 not being exported.         


Date: May 14, 2008 06:08

On Tue, 13 May 2008 23:06:02 -0700, Washu Hibiki wrote:
> Yes, this is roughly the solution we ended up going with.

Why didn't you say so?
> I was just bringing
> it up since I consider it a bug in the framework (exposing the IID, but not
> actually exporting it). I couldn't remember where to post such bug reports,
> so posted it here.

directx@microsoft.com

or

xna@microsoft.com

(reply is not guaranteed)

--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution
no comments
Re: IID_IXAudio2 not being exported.         


Author: Chuck Walbourn [MSFT]
Date: May 14, 2008 14:03

DXGUID.LIB in the DirectX SDK has will be updated in the upcoming June 2008
release. This includes removing GUIDs for the deprecated APIs dropped in
November 2007 (Direct3D 8 and prior, Direct3D RM except the .x file related
GUIDs, DirectMusic, DirectPlay, DirectPlay Voice), adding some missing GUIDs
for XAudio2 and Direct3D 10.1, and updating from XACT to XACT3 GUIDs.

DXGUID is just a convience. You can always use the GUID_DEFS_ONLY or
INITGUID #defines in one of your project link modules to cause the various
headers to declare an instance of the GUID.

--
-Chuck Walbourn
SDE, XNA Developer Connection

This posting is provided "AS IS" with no warrenties, and confers no rights.
no comments