Youkoulele

Hi,
I am using VS2005 and the MS SDK latest release.
Please help me, I cannot find any real solutions through this forum.
Can anyone ( and I am sure) have an idea of what libraries I need to include....
Or maybe is something else...

Youkoulele

1>Compiling...
1>sampvid.cpp
1>videotxt.cpp
1>vidprop.cpp
1>Generating Code...
1>Linking...
1> Creating library Debug\SampVid.lib and object Debug\SampVid.exp
1>sampvid.obj : error LNK2019: unresolved external symbol "public: __thiscall CImageAllocator::CImageAllocator(class CBaseFilter *,wchar_t const *,long *)" ( 0CImageAllocator@@QAE@PAVCBaseFilter@@PB_WPAJ@Z) referenced in function "public: __thiscall CVideoRenderer::CVideoRenderer(wchar_t *,struct IUnknown *,long *)" ( 0CVideoRenderer@@QAE@PA_WPAUIUnknown@@PAJ@Z)
1>sampvid.obj : error LNK2019: unresolved external symbol "public: __thiscall CBaseVideoRenderer::CBaseVideoRenderer(struct _GUID const &,wchar_t const *,struct IUnknown *,long *)" ( 0CBaseVideoRenderer@@QAE@ABU_GUID@@PB_WPAUIUnknown@@PAJ@Z) referenced in function "public: __thiscall CVideoRenderer::CVideoRenderer(wchar_t *,struct IUnknown *,long *)" ( 0CVideoRenderer@@QAE@PA_WPAUIUnknown@@PAJ@Z)
1>sampvid.obj : error LNK2019: unresolved external symbol "void __stdcall DbgAssert(wchar_t const *,wchar_t const *,int)" ( DbgAssert@@YGXPB_W0H@Z) referenced in function "public: virtual class CBasePin * __thiscall CVideoRenderer::GetPin(int)" ( GetPin@CVideoRenderer@@UAEPAVCBasePin@@H@Z)
1>videotxt.obj : error LNK2001: unresolved external symbol "void __stdcall DbgAssert(wchar_t const *,wchar_t const *,int)" ( DbgAssert@@YGXPB_W0H@Z)
1>vidprop.obj : error LNK2001: unresolved external symbol "void __stdcall DbgAssert(wchar_t const *,wchar_t const *,int)" ( DbgAssert@@YGXPB_W0H@Z)
1>sampvid.obj : error LNK2019: unresolved external symbol "void __cdecl DbgLogInfo(unsigned long,unsigned long,wchar_t const *,...)" ( DbgLogInfo@@YAXKKPB_WZZ) referenced in function "public: virtual long __thiscall CVideoRenderer::Active(void)" ( Active@CVideoRenderer@@UAEJXZ)
1>videotxt.obj : error LNK2001: unresolved external symbol "void __cdecl DbgLogInfo(unsigned long,unsigned long,wchar_t const *,...)" ( DbgLogInfo@@YAXKKPB_WZZ)
1>videotxt.obj : error LNK2019: unresolved external symbol "public: __thiscall CBaseControlVideo::CBaseControlVideo(class CBaseFilter *,class CCritSec *,wchar_t const *,struct IUnknown *,long *)" ( 0CBaseControlVideo@@QAE@PAVCBaseFilter@@PAVCCritSec@@PB_WPAUIUnknown@@PAJ@Z) referenced in function "public: __thiscall CVideoText::CVideoText(wchar_t *,struct IUnknown *,long *,class CCritSec *,class CVideoRenderer *)" ( 0CVideoText@@QAE@PA_WPAUIUnknown@@PAJPAVCCritSec@@PAVCVideoRenderer@@@Z)
1>videotxt.obj : error LNK2019: unresolved external symbol "public: __thiscall CBaseControlWindow::CBaseControlWindow(class CBaseFilter *,class CCritSec *,wchar_t const *,struct IUnknown *,long *)" ( 0CBaseControlWindow@@QAE@PAVCBaseFilter@@PAVCCritSec@@PB_WPAUIUnknown@@PAJ@Z) referenced in function "public: __thiscall CVideoText::CVideoText(wchar_t *,struct IUnknown *,long *,class CCritSec *,class CVideoRenderer *)" ( 0CVideoText@@QAE@PA_WPAUIUnknown@@PAJPAVCCritSec@@PAVCVideoRenderer@@@Z)
1>vidprop.obj : error LNK2019: unresolved external symbol "public: __thiscall CBasePropertyPage::CBasePropertyPage(wchar_t const *,struct IUnknown *,int,int)" ( 0CBasePropertyPage@@QAE@PB_WPAUIUnknown@@HH@Z) referenced in function "public: __thiscall CQualityProperties::CQualityProperties(struct IUnknown *,long *)" ( 0CQualityProperties@@QAE@PAUIUnknown@@PAJ@Z)
Code Snippet




Re: Visual C++ Language Link errors

Marius Bancila

Most likely you forgot to link your project with one or more libraries. Take a look into the documentation to see what lib file(s) you should be linking to.




Re: Visual C++ Language Link errors

Holger Grund

Since all unresolved externals seem to have a wchar_t in the signature, it's quite possible that you see a /Zc:wchar_t mismatch.

Mixing object files compiled with /Zc:wchar_t (default in VC8+) and /Zc:wchar_t- (default pre VC8) won't work. There are some options to workaround the issues, but it is certainly a good idea to use consistent compatible compiler options for all contributing object files.

-hg





Re: Visual C++ Language Link errors

Youkoulele

Ok, I followed the instruction from MSDN but it doesn't sort this out.
Any ideas

MM






Re: Visual C++ Language Link errors

Holger Grund

If it is really related to wchar_t issues setting the option to /Zc:wchar_t- (that is disable conformant behavior) should do the trick. However, you should understand that this behavior is nonconformant and will probably be removed at some point in time.

If you happen to know which library or object file should define the missing symbols, you can run dumpbin /SYMBOLS on it and compare it with the linker diagnostics.

-hg