LNK2005 with initguid.h & speech.h
From: Steve Perrins (support_at_scp-computers.co.uk)
Date: 09/08/04
- Next message: Doug Harrison [MVP]: "Re: Multithreading and static object initialisation."
- Previous message: Patty O'Dors: "Re: ATL Richedit text change events"
- Next in thread: Steve Perrins: "Re: LNK2005 with initguid.h & speech.h"
- Reply: Steve Perrins: "Re: LNK2005 with initguid.h & speech.h"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 8 Sep 2004 17:14:21 +0100
I've just purchased a new PC with XP pro and installed visual C++ V6.0
SP5.0. One of the projects I have been working on will not compile on the
new PC due to numerous LNK2005 errors. The old PC was running Windows ME.
The header file contains the following includes :-
#include <mmsystem.h>
#include <initguid.h>
#include <objbase.h>
#include <objerror.h>
#include <ole2ver.h>
#include <speech.h>
#include "resource.h" // main symbols
#include "Ai2Glbl.h"
The link errors are all related to SAPI 4.0 functions :-
Ai2HttpPostDlg.obj : error LNK2005: _IID_IAudioExternalSynthesizer already
defined in Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _IID_ITTSExternalSynthesizerA already
defined in Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _IID_ITTSExternalSynthesizerW already
defined in Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _CLSID_SynthEngineEnumerator already
defined in Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _CLSID_SynthEngine already defined in
Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _CLSID_SynthAudioDest already defined in
Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _IID_IAudioTel already defined in
Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _IID_IAudioSourceLog already defined in
Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _IID_ISTLog already defined in
Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _IID_ISTTTSQueueNotifySink already
defined in Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _IID_ISTTTSQueue already defined in
Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _IID_ISTGramComp already defined in
Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _IID_ISTRecordNotifySink already defined
in Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _IID_ISTRecord already defined in
Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _CLSID_STRecord already defined in
Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _CLSID_AudioDestTel already defined in
Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _CLSID_AudioSourceTel already defined in
Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _CLSID_AudioSourceLog already defined in
Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _CLSID_STLog already defined in
Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _CLSID_STTTSQueue already defined in
Ai2HttpPost.obj
Ai2HttpPostDlg.obj : error LNK2005: _CLSID_STGramComp already defined in
Ai2HttpPost.obj
these are just a few of the 347 errors reported at build time.
Any help would be greatly appreciated as this is slowly driving me mad.
Thanks,
Steve Perrins.
- Next message: Doug Harrison [MVP]: "Re: Multithreading and static object initialisation."
- Previous message: Patty O'Dors: "Re: ATL Richedit text change events"
- Next in thread: Steve Perrins: "Re: LNK2005 with initguid.h & speech.h"
- Reply: Steve Perrins: "Re: LNK2005 with initguid.h & speech.h"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|