Discussion:
SAPI 5.3 linking problem with MSVS2008 on Vista
(too old to reply)
SAPI 5.3 linking
2009-05-20 09:03:01 UTC
Permalink
Hello everybody,
I just have crossed a linking problem that I am not able to resolve. I am
trying to implement SAPI 5.3 TTS using a simple tutorial
http://msdn.microsoft.com/en-us/library/ms720165(VS.85).aspx or the SAPI 5.3
tutorial example TTSApp
(http://msdn.microsoft.com/en-us/library/ms720410(VS.85).aspx). Everything
works fine with MSVS2005 on win XP, but with MSVS2008 on Vista I got the
following linking errors:
error LNK2001: unresolved external symbol _CLSID_SpVoice
error LNK2001: unresolved external symbol _IID_ISpVoice
I followed the simple tutorial exactly so the include/Lib directories are
added and sapi.lib should be linked.
Can anyone help me with this infuriating problem that I was not able to
dissolve?
Steve Meyer [MSFT]
2009-06-01 20:38:36 UTC
Permalink
Now that SAPI is part of the Windows SDK and no longer a stand-alone SDK
release, the location of its include and lib files has changed.

If you have the Windows SDK for Vista installed and installed to the default
location, the SAPI header file should be under C:\Program Files\Microsoft
SDKs\Windows\v6.0\Include and the SAPI.lib file should be located under
C:\Program Files\Microsoft SDKs\Windows\v6.0\Lib\x86 (and x64).

Open up your project setting and update them to search these locations for
include and library files. This should get you unblocked.

-- Steve Meyer

This posting is provided "AS IS" with no warranties, and confers no rights.
Post by SAPI 5.3 linking
Hello everybody,
I just have crossed a linking problem that I am not able to resolve. I am
trying to implement SAPI 5.3 TTS using a simple tutorial
http://msdn.microsoft.com/en-us/library/ms720165(VS.85).aspx or the SAPI 5.3
tutorial example TTSApp
(http://msdn.microsoft.com/en-us/library/ms720410(VS.85).aspx). Everything
works fine with MSVS2005 on win XP, but with MSVS2008 on Vista I got the
error LNK2001: unresolved external symbol _CLSID_SpVoice
error LNK2001: unresolved external symbol _IID_ISpVoice
I followed the simple tutorial exactly so the include/Lib directories are
added and sapi.lib should be linked.
Can anyone help me with this infuriating problem that I was not able to
dissolve?
SAPI 5.3 linking
2009-06-02 08:11:02 UTC
Permalink
Thank you for your answer, but I am linking the correct libraries and SAPI
headers.

Zdenek Chaloupka
Post by Steve Meyer [MSFT]
Now that SAPI is part of the Windows SDK and no longer a stand-alone SDK
release, the location of its include and lib files has changed.
If you have the Windows SDK for Vista installed and installed to the default
location, the SAPI header file should be under C:\Program Files\Microsoft
SDKs\Windows\v6.0\Include and the SAPI.lib file should be located under
C:\Program Files\Microsoft SDKs\Windows\v6.0\Lib\x86 (and x64).
Open up your project setting and update them to search these locations for
include and library files. This should get you unblocked.
-- Steve Meyer
This posting is provided "AS IS" with no warranties, and confers no rights.
Post by SAPI 5.3 linking
Hello everybody,
I just have crossed a linking problem that I am not able to resolve. I am
trying to implement SAPI 5.3 TTS using a simple tutorial
http://msdn.microsoft.com/en-us/library/ms720165(VS.85).aspx or the SAPI 5.3
tutorial example TTSApp
(http://msdn.microsoft.com/en-us/library/ms720410(VS.85).aspx). Everything
works fine with MSVS2005 on win XP, but with MSVS2008 on Vista I got the
error LNK2001: unresolved external symbol _CLSID_SpVoice
error LNK2001: unresolved external symbol _IID_ISpVoice
I followed the simple tutorial exactly so the include/Lib directories are
added and sapi.lib should be linked.
Can anyone help me with this infuriating problem that I was not able to
dissolve?
Loading...