It sounds like you&#39;re just not telling the compiler to link the right thing.  If it were a matter of the library not being supported, you would be told that the library wasn&#39;t there, or you&#39;d get an error before linking.  Open properties for the project and go to<br>
Configuration Properties &gt; Linker &gt; Input and make sure that Dsound.lib is there.<br>If it is already there, then perhaps, somehow, your WinDef.h is confused and so the WINAPI macro is defined wrong when you include &lt;dsound.h&gt; and consequently the function signature doesn&#39;t match the one found in dsound.lib.<br>
<br>jc<br><br><div class="gmail_quote">On Thu, Mar 10, 2011 at 12:06 AM, Nick <span dir="ltr">&lt;<a href="mailto:caprice24@yahoo.com">caprice24@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top"><div>Hi,</div>
<div>I&#39;m having trouble with the following cpp files:</div>
<div>RtAudio</div>
<div>RTMidi</div>
<div>RtWvIn</div>
<div>RtWvOut</div>
<div> </div>
<div>which I understand make use of DirectSound API in Windows. Since I&#39;m running Windows 7 on a 64 bit laptop, I&#39;m wondering if the reason these files are failing to link is because DirectSound is no longer supported on Win 7?</div>

<div> </div>
<div>I do have the preprocessor directive _WINDOWS_DS_   specified on the C++ command line build argument with Visual Studio 2010.</div>
<div> </div>
<div>Errors from the compile are shown below.</div>
<div> </div>
<div>Thanks,</div>
<div>Nick</div>
<div> </div><font face="Consolas" size="1"><font face="Consolas" size="1">
<div>1&gt;RtAudio.obj : error LNK2019: unresolved external symbol _DirectSoundCaptureEnumerateA@8 referenced in function &quot;public: virtual unsigned int __thiscall RtApiDs::getDeviceCount(void)&quot; (?getDeviceCount@RtApiDs@@UAEIXZ)</div>

<div>1&gt;RtAudio.obj : error LNK2019: unresolved external symbol _DirectSoundEnumerateA@8 referenced in function &quot;public: virtual unsigned int __thiscall RtApiDs::getDeviceCount(void)&quot; (?getDeviceCount@RtApiDs@@UAEIXZ)</div>

<div>1&gt;RtAudio.obj : error LNK2019: unresolved external symbol _DirectSoundCaptureCreate@12 referenced in function &quot;public: virtual struct RtAudio::DeviceInfo __thiscall RtApiDs::getDeviceInfo(unsigned int)&quot; (?getDeviceInfo@RtApiDs@@UAE?AUDeviceInfo@RtAudio@@I@Z)</div>

<div>1&gt;RtAudio.obj : error LNK2019: unresolved external symbol _DirectSoundCreate@12 referenced in function &quot;public: virtual struct RtAudio::DeviceInfo __thiscall RtApiDs::getDeviceInfo(unsigned int)&quot; (?getDeviceInfo@RtApiDs@@UAE?AUDeviceInfo@RtAudio@@I@Z)</div>

<div>1&gt;RtWvIn.obj : error LNK2019: unresolved external symbol &quot;public: void __thiscall stk::Mutex::unlock(void)&quot; (?unlock@Mutex@stk@@QAEXXZ) referenced in function &quot;public: void __thiscall stk::RtWvIn::fillBuffer(void *,unsigned int)&quot; (?fillBuffer@RtWvIn@stk@@QAEXPAXI@Z)</div>

<div>1&gt;RtWvOut.obj : error LNK2001: unresolved external symbol &quot;public: void __thiscall stk::Mutex::unlock(void)&quot; (?unlock@Mutex@stk@@QAEXXZ)</div>
<div>1&gt;RtWvIn.obj : error LNK2019: unresolved external symbol &quot;public: void __thiscall stk::Mutex::lock(void)&quot; (?lock@Mutex@stk@@QAEXXZ) referenced in function &quot;public: void __thiscall stk::RtWvIn::fillBuffer(void *,unsigned int)&quot; (?fillBuffer@RtWvIn@stk@@QAEXPAXI@Z)</div>

<div>1&gt;RtWvOut.obj : error LNK2001: unresolved external symbol &quot;public: void __thiscall stk::Mutex::lock(void)&quot; (?lock@Mutex@stk@@QAEXXZ)</div>
<div>1&gt;RtWvIn.obj : error LNK2019: unresolved external symbol &quot;public: virtual __thiscall stk::Mutex::~Mutex(void)&quot; (??1Mutex@stk@@UAE@XZ) referenced in function &quot;public: virtual __thiscall stk::RtWvIn::~RtWvIn(void)&quot; (??1RtWvIn@stk@@UAE@XZ)</div>

<div>1&gt;RtWvOut.obj : error LNK2001: unresolved external symbol &quot;public: virtual __thiscall stk::Mutex::~Mutex(void)&quot; (??1Mutex@stk@@UAE@XZ)</div>
<div>1&gt;RtWvIn.obj : error LNK2019: unresolved external symbol &quot;public: __thiscall stk::Mutex::Mutex(void)&quot; (??0Mutex@stk@@QAE@XZ) referenced in function &quot;public: __thiscall stk::RtWvIn::RtWvIn(unsigned int,double,int,int,int)&quot; (??0RtWvIn@stk@@QAE@INHHH@Z)</div>

<div>1&gt;RtWvOut.obj : error LNK2001: unresolved external symbol &quot;public: __thiscall stk::Mutex::Mutex(void)&quot; (??0Mutex@stk@@QAE@XZ)</div>
<div>1&gt;.\sine.exe : fatal error LNK1120: 8 unresolved externals</div>
<div>1&gt;</div>
<div>1&gt;Build FAILED.</div>
<div>1&gt;</div>
<div>1&gt;Time Elapsed 00:00:10.83</div>
<div>========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</div></font></font></td></tr></tbody></table><br>

      <br>_______________________________________________<br>
Stk mailing list<br>
<a href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a><br>
<a href="http://ccrma-mail.stanford.edu/mailman/listinfo/stk" target="_blank">http://ccrma-mail.stanford.edu/mailman/listinfo/stk</a><br>
<br></blockquote></div><br>