| Linking errors building AMCap (sample from DirectShow, SDK ) |
|
| Author |
Message |
toratora

|
Posted: Visual C++ General, Linking errors building AMCap (sample from DirectShow, SDK ) |
Top |
Hi!
I'm trying to build this application, which should have no problems,
but I'm getting linking errors with Visual 2005 Express. These are the
errors I get:
------ Build started: Project: AmCap, Configuration: Debug Win32 ------
Linking...
amcap.obj : error LNK2019: unresolved external symbol
__imp__CoCreateInstance@20 referenced in function "long __cdecl
AddFilterByCLSID(struct IGraphBuilder *,struct _GUID const &,struct
IBaseFilter * *,wchar_t const *)"
( AddFilterByCLSID@@YAJPAUIGraphBuilder@@ABU_GUID@@PAPAUIBaseFilter@@PB_W@Z)
SampleCGB.obj : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
amcap.obj : error LNK2019: unresolved external symbol
__imp__CoTaskMemRealloc@8 referenced in function "long __cdecl
CopyFormatBlock(struct _AMMediaType *,unsigned char const *,unsigned
long)" ( CopyFormatBlock@@YAJPAU_AMMediaType@@PBEK@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__VariantClear@4 referenced in function "long __cdecl
CreateKernelFilter(struct _GUID const &,wchar_t const *,struct
IBaseFilter * *)"
( CreateKernelFilter@@YAJABU_GUID@@PB_WPAPAUIBaseFilter@@@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__VariantInit@4 referenced in function "long __cdecl
CreateKernelFilter(struct _GUID const &,wchar_t const *,struct
IBaseFilter * *)"
( CreateKernelFilter@@YAJABU_GUID@@PB_WPAPAUIBaseFilter@@@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__CoTaskMemAlloc@4 referenced in function "long __cdecl
CreatePCMAudioType(struct _AMMediaType &,unsigned short,unsigned
long,unsigned short)" ( CreatePCMAudioType@@YAJAAU_AMMediaType@@GKG@Z)
Strmbasd.lib(mtype.obj) : error LNK2001: unresolved external symbol __imp__CoTaskMemAlloc@4
amcap.obj : error LNK2019: unresolved external symbol
__imp__ReleaseDC@8 referenced in function "long __cdecl
CreateRGBVideoType(struct _AMMediaType &,unsigned
short,long,long,double)"
( CreateRGBVideoType@@YAJAAU_AMMediaType@@GJJN@Z)
status.obj : error LNK2001: unresolved external symbol __imp__ReleaseDC@8
amcap.obj : error LNK2019: unresolved external symbol
__imp__GetSystemPaletteEntries@16 referenced in function "long __cdecl
CreateRGBVideoType(struct _AMMediaType &,unsigned
short,long,long,double)"
( CreateRGBVideoType@@YAJAAU_AMMediaType@@GJJN@Z)
amcap.obj : error LNK2019: unresolved external symbol __imp__GetDC@4
referenced in function "long __cdecl CreateRGBVideoType(struct
_AMMediaType &,unsigned short,long,long,double)"
( CreateRGBVideoType@@YAJAAU_AMMediaType@@GJJN@Z)
status.obj : error LNK2001: unresolved external symbol __imp__GetDC@4
amcap.obj : error LNK2019: unresolved external symbol
__imp__StgCreateDocfile@16 referenced in function "long __cdecl
SaveGraphFile(struct IGraphBuilder *,wchar_t *)"
( SaveGraphFile@@YAJPAUIGraphBuilder@@PA_W@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__StgOpenStorage@24 referenced in function "long __cdecl
LoadGraphFile(struct IGraphBuilder *,wchar_t const *)"
( LoadGraphFile@@YAJPAUIGraphBuilder@@PB_W@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__StgIsStorageFile@4 referenced in function "long __cdecl
LoadGraphFile(struct IGraphBuilder *,wchar_t const *)"
( LoadGraphFile@@YAJPAUIGraphBuilder@@PB_W@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__CreateItemMoniker@12 referenced in function "long __cdecl
AddGraphToRot(struct IUnknown *,unsigned long *)"
( AddGraphToRot@@YAJPAUIUnknown@@PAK@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__GetRunningObjectTable@8 referenced in function "long __cdecl
AddGraphToRot(struct IUnknown *,unsigned long *)"
( AddGraphToRot@@YAJPAUIUnknown@@PAK@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__SetWindowTextW@8 referenced in function "void __cdecl
SetAppCaption(void)" ( SetAppCaption@@YAXXZ)
status.obj : error LNK2001: unresolved external symbol __imp__SetWindowTextW@8
amcap.obj : error LNK2019: unresolved external symbol
__imp__ShowWindow@8 referenced in function "int __cdecl AppInit(struct
HINSTANCE__ *,struct HINSTANCE__ *,int)"
( AppInit@@YAHPAUHINSTANCE__@@0H@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__CreateWindowExW@48 referenced in function "int __cdecl
AppInit(struct HINSTANCE__ *,struct HINSTANCE__ *,int)"
( AppInit@@YAHPAUHINSTANCE__@@0H@Z)
status.obj : error LNK2001: unresolved external symbol __imp__CreateWindowExW@48
amcap.obj : error LNK2019: unresolved external symbol
__imp__GetTextMetricsW@8 referenced in function "int __cdecl
AppInit(struct HINSTANCE__ *,struct HINSTANCE__ *,int)"
( AppInit@@YAHPAUHINSTANCE__@@0H@Z)
status.obj : error LNK2001: unresolved external symbol __imp__GetTextMetricsW@8
amcap.obj : error LNK2019: unresolved external symbol
__imp__SelectObject@8 referenced in function "int __cdecl
AppInit(struct HINSTANCE__ *,struct HINSTANCE__ *,int)"
( AppInit@@YAHPAUHINSTANCE__@@0H@Z)
status.obj : error LNK2001: unresolved external symbol __imp__SelectObject@8
amcap.obj : error LNK2019: unresolved external symbol
__imp__GetStockObject@4 referenced in function "int __cdecl
AppInit(struct HINSTANCE__ *,struct HINSTANCE__ *,int)"
( AppInit@@YAHPAUHINSTANCE__@@0H@Z)
status.obj : error LNK2001: unresolved external symbol __imp__GetStockObject@4
amcap.obj : error LNK2019: unresolved external symbol
__imp__RegisterClassW@4 referenced in function "int __cdecl
AppInit(struct HINSTANCE__ *,struct HINSTANCE__ *,int)"
( AppInit@@YAHPAUHINSTANCE__@@0H@Z)
status.obj : error LNK2001: unresolved external symbol __imp__RegisterClassW@4
amcap.obj : error LNK2019: unresolved external symbol
__imp__LoadIconW@8 referenced in function "int __cdecl AppInit(struct
HINSTANCE__ *,struct HINSTANCE__ *,int)"
( AppInit@@YAHPAUHINSTANCE__@@0H@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__LoadCursorW@8 referenced in function "int __cdecl AppInit(struct
HINSTANCE__ *,struct HINSTANCE__ *,int)"
( AppInit@@YAHPAUHINSTANCE__@@0H@Z)
status.obj : error LNK2001: unresolved external symbol __imp__LoadCursorW@8
amcap.obj : error LNK2019: unresolved external symbol
__imp__LoadAcceleratorsW@8 referenced in function "int __cdecl
AppInit(struct HINSTANCE__ *,struct HINSTANCE__ *,int)"
( AppInit@@YAHPAUHINSTANCE__@@0H@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__CoInitializeEx@8 referenced in function "int __cdecl
AppInit(struct HINSTANCE__ *,struct HINSTANCE__ *,int)"
( AppInit@@YAHPAUHINSTANCE__@@0H@Z)
amcap.obj : error LNK2019: unresolved external symbol __imp__CoUninitialize@0 referenced in function _WinMain@16
amcap.obj : error LNK2019: unresolved external symbol __imp__WaitMessage@0 referenced in function _WinMain@16
amcap.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageW@4 referenced in function _WinMain@16
amcap.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function _WinMain@16
amcap.obj : error LNK2019: unresolved external symbol __imp__TranslateAcceleratorW@12 referenced in function _WinMain@16
amcap.obj : error LNK2019: unresolved external symbol __imp__PeekMessageW@20 referenced in function _WinMain@16
amcap.obj : error LNK2019: unresolved external symbol
__imp__DefWindowProcW@16 referenced in function "long __stdcall
AppWndProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AppWndProc@@YGJPAUHWND__@@IIJ@Z)
status.obj : error LNK2001: unresolved external symbol __imp__DefWindowProcW@16
amcap.obj : error LNK2019: unresolved external symbol
__imp__MoveWindow@24 referenced in function "long __stdcall
AppWndProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AppWndProc@@YGJPAUHWND__@@IIJ@Z)
status.obj : error LNK2001: unresolved external symbol __imp__MoveWindow@24
amcap.obj : error LNK2019: unresolved external symbol
__imp__GetSystemMetrics@4 referenced in function "long __stdcall
AppWndProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AppWndProc@@YGJPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__GetClientRect@8 referenced in function "long __stdcall
AppWndProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AppWndProc@@YGJPAUHWND__@@IIJ@Z)
status.obj : error LNK2001: unresolved external symbol __imp__GetClientRect@8
amcap.obj : error LNK2019: unresolved external symbol __imp__EndPaint@8
referenced in function "long __stdcall AppWndProc(struct HWND__
*,unsigned int,unsigned int,long)" ( AppWndProc@@YGJPAUHWND__@@IIJ@Z)
status.obj : error LNK2001: unresolved external symbol __imp__EndPaint@8
amcap.obj : error LNK2019: unresolved external symbol
__imp__BeginPaint@8 referenced in function "long __stdcall
AppWndProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AppWndProc@@YGJPAUHWND__@@IIJ@Z)
status.obj : error LNK2001: unresolved external symbol __imp__BeginPaint@8
amcap.obj : error LNK2019: unresolved external symbol
__imp__GetAsyncKeyState@4 referenced in function "long __stdcall
AppWndProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AppWndProc@@YGJPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__PostQuitMessage@4 referenced in function "long __stdcall
AppWndProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AppWndProc@@YGJPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__GetSubMenu@8 referenced in function "long __stdcall
AppWndProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AppWndProc@@YGJPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol __imp__GetMenu@4
referenced in function "long __stdcall AppWndProc(struct HWND__
*,unsigned int,unsigned int,long)" ( AppWndProc@@YGJPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__CheckMenuItem@12 referenced in function "long __stdcall
AppWndProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AppWndProc@@YGJPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__EnableMenuItem@12 referenced in function "long __stdcall
AppWndProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AppWndProc@@YGJPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__SetWindowPos@28 referenced in function "void __cdecl
ResizeWindow(int,int)" ( ResizeWindow@@YAXHH@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__GetWindowRect@8 referenced in function "void __cdecl
ResizeWindow(int,int)" ( ResizeWindow@@YAXHH@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__SysFreeString@4 referenced in function "int __cdecl
InitCapFilters(void)" ( InitCapFilters@@YAHXZ)
amcap.obj : error LNK2019: unresolved external symbol
__imp__InvalidateRect@12 referenced in function "int __cdecl
StopPreview(void)" ( StopPreview@@YAHXZ)
status.obj : error LNK2001: unresolved external symbol __imp__InvalidateRect@12
amcap.obj : error LNK2019: unresolved external symbol
__imp__SetTimer@16 referenced in function "int __cdecl
StartCapture(void)" ( StartCapture@@YAHXZ)
amcap.obj : error LNK2019: unresolved external symbol
__imp__KillTimer@8 referenced in function "int __cdecl
StopCapture(void)" ( StopCapture@@YAHXZ)
amcap.obj : error LNK2019: unresolved external symbol
__imp__CreatePopupMenu@0 referenced in function "void __cdecl
MakeMenuOptions(void)" ( MakeMenuOptions@@YAXXZ)
amcap.obj : error LNK2019: unresolved external symbol
__imp__CoTaskMemFree@4 referenced in function "void __cdecl
MakeMenuOptions(void)" ( MakeMenuOptions@@YAXXZ)
SampleCGB.obj : error LNK2001: unresolved external symbol __imp__CoTaskMemFree@4
Strmbasd.lib(mtype.obj) : error LNK2001: unresolved external symbol __imp__CoTaskMemFree@4
amcap.obj : error LNK2019: unresolved external symbol
__imp__AppendMenuW@16 referenced in function "void __cdecl
MakeMenuOptions(void)" ( MakeMenuOptions@@YAXXZ)
amcap.obj : error LNK2019: unresolved external symbol
__imp__RemoveMenu@12 referenced in function "void __cdecl
MakeMenuOptions(void)" ( MakeMenuOptions@@YAXXZ)
amcap.obj : error LNK2019: unresolved external symbol
__imp__MkParseDisplayName@16 referenced in function "void __cdecl
ChooseDevices(wchar_t *,wchar_t *)" ( ChooseDevices@@YAXPA_W0@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__CreateBindCtx@8 referenced in function "void __cdecl
ChooseDevices(wchar_t *,wchar_t *)" ( ChooseDevices@@YAXPA_W0@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__GetMenuItemCount@4 referenced in function "void __cdecl
AddDevicesToMenu(void)" ( AddDevicesToMenu@@YAXXZ)
amcap.obj : error LNK2019: unresolved external symbol
__imp__OleCreatePropertyFrame@44 referenced in function "long __stdcall
AppCommand(struct HWND__ *,unsigned int,unsigned int,long)"
( AppCommand@@YGJPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__PostMessageW@16 referenced in function "long __stdcall
AppCommand(struct HWND__ *,unsigned int,unsigned int,long)"
( AppCommand@@YGJPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__DialogBoxParamW@20 referenced in function "long __stdcall
AppCommand(struct HWND__ *,unsigned int,unsigned int,long)"
( AppCommand@@YGJPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__MessageBoxW@16 referenced in function "void __cdecl
ErrMsg(wchar_t *,...)" ( ErrMsg@@YAXPA_WZZ)
Strmbasd.lib(wxdebug.obj) : error LNK2001: unresolved external symbol __imp__MessageBoxW@16
amcap.obj : error LNK2019: unresolved external symbol
__imp__EndDialog@8 referenced in function "int __stdcall
AboutDlgProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AboutDlgProc@@YGHPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__UpdateWindow@4 referenced in function "int __cdecl
AllocCaptureFile(struct HWND__ *)" ( AllocCaptureFile@@YAHPAUHWND__@@@Z)
status.obj : error LNK2001: unresolved external symbol __imp__UpdateWindow@4
amcap.obj : error LNK2019: unresolved external symbol
__imp__GetOpenFileNameW@4 referenced in function "int __cdecl
OpenFileDialog(struct HWND__ *,wchar_t *,int)"
( OpenFileDialog@@YAHPAUHWND__@@PA_WH@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__SetDlgItemTextW@12 referenced in function "int __stdcall
AllocCapFileProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AllocCapFileProc@@YGHPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__IsCharAlphaNumericW@4 referenced in function "int __stdcall
AllocCapFileProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AllocCapFileProc@@YGHPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__IsCharAlphaW@4 referenced in function "int __stdcall
AllocCapFileProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AllocCapFileProc@@YGHPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__GetDlgItemTextW@16 referenced in function "int __stdcall
AllocCapFileProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AllocCapFileProc@@YGHPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__MessageBeep@4 referenced in function "int __stdcall
AllocCapFileProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AllocCapFileProc@@YGHPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol __imp__SetFocus@4
referenced in function "int __stdcall AllocCapFileProc(struct HWND__
*,unsigned int,unsigned int,long)"
( AllocCapFileProc@@YGHPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__GetDlgItemInt@16 referenced in function "int __stdcall
AllocCapFileProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AllocCapFileProc@@YGHPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__EnableWindow@8 referenced in function "int __stdcall
AllocCapFileProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AllocCapFileProc@@YGHPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__GetDlgItem@8 referenced in function "int __stdcall
AllocCapFileProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AllocCapFileProc@@YGHPAUHWND__@@IIJ@Z)
status.obj : error LNK2001: unresolved external symbol __imp__GetDlgItem@8
amcap.obj : error LNK2019: unresolved external symbol
__imp__SetDlgItemInt@16 referenced in function "int __stdcall
AllocCapFileProc(struct HWND__ *,unsigned int,unsigned int,long)"
( AllocCapFileProc@@YGHPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__IsDlgButtonChecked@8 referenced in function "int __stdcall
FrameRateProc(struct HWND__ *,unsigned int,unsigned int,long)"
( FrameRateProc@@YGHPAUHWND__@@IIJ@Z)
amcap.obj : error LNK2019: unresolved external symbol
__imp__CheckDlgButton@12 referenced in function "int __stdcall
FrameRateProc(struct HWND__ *,unsigned int,unsigned int,long)"
( FrameRateProc@@YGHPAUHWND__@@IIJ@Z)
status.obj : error LNK2019: unresolved external symbol
__imp__CreateFontW@56 referenced in function "void __cdecl
statusCreateTools(void)" ( statusCreateTools@@YAXXZ)
status.obj : error LNK2019: unresolved external symbol
__imp__CreateSolidBrush@4 referenced in function "void __cdecl
statusCreateTools(void)" ( statusCreateTools@@YAXXZ)
status.obj : error LNK2019: unresolved external symbol
__imp__GetSysColor@4 referenced in function "void __cdecl
statusCreateTools(void)" ( statusCreateTools@@YAXXZ)
status.obj : error LNK2019: unresolved external symbol
__imp__DeleteObject@4 referenced in function "void __cdecl
statusDeleteTools(void)" ( statusDeleteTools@@YAXXZ)
status.obj : error LNK2019: unresolved external symbol
__imp__GetWindowLongW@8 referenced in function "long __stdcall
statusWndProc(struct HWND__ *,unsigned int,unsigned int,long)"
( statusWndProc@@YGJPAUHWND__@@IIJ@Z)
status.obj : error LNK2019: unresolved external symbol __imp__PatBlt@24
referenced in function "void __cdecl PaintText(struct HWND__ *,struct
HDC__ *)" ( PaintText@@YAXPAUHWND__@@PAUHDC__@@@Z)
status.obj : error LNK2019: unresolved external symbol
__imp__ExtTextOutW@32 referenced in function "void __cdecl
PaintText(struct HWND__ *,struct HDC__ *)"
( PaintText@@YAXPAUHWND__@@PAUHDC__@@@Z)
status.obj : error LNK2019: unresolved external symbol
__imp__SetTextColor@8 referenced in function "void __cdecl
PaintText(struct HWND__ *,struct HDC__ *)"
( PaintText@@YAXPAUHWND__@@PAUHDC__@@@Z)
status.obj : error LNK2019: unresolved external symbol
__imp__SetBkColor@8 referenced in function "void __cdecl
PaintText(struct HWND__ *,struct HDC__ *)"
( PaintText@@YAXPAUHWND__@@PAUHDC__@@@Z)
status.obj : error LNK2019: unresolved external symbol
__imp__GetWindowTextW@12 referenced in function "void __cdecl
PaintText(struct HWND__ *,struct HDC__ *)"
( PaintText@@YAXPAUHWND__@@PAUHDC__@@@Z)
Strmbasd.lib(wxdebug.obj) : error LNK2019: unresolved external symbol
__imp__RegSetValueExW@24 referenced in function "void __stdcall
DbgInitKeyLevels(struct HKEY__ *,bool)"
( DbgInitKeyLevels@@YGXPAUHKEY__@@_N@Z)
Strmbasd.lib(wxdebug.obj) : error LNK2019: unresolved external symbol
__imp__RegQueryValueExW@24 referenced in function "void __stdcall
DbgInitKeyLevels(struct HKEY__ *,bool)"
( DbgInitKeyLevels@@YGXPAUHKEY__@@_N@Z)
Strmbasd.lib(wxdebug.obj) : error LNK2019: unresolved external symbol
__imp__RegCloseKey@4 referenced in function "void __stdcall
DbgInitGlobalSettings(bool)" ( DbgInitGlobalSettings@@YGX_N@Z)
Strmbasd.lib(wxdebug.obj) : error LNK2019: unresolved external symbol
__imp__RegCreateKeyExW@36 referenced in function "void __stdcall
DbgInitGlobalSettings(bool)" ( DbgInitGlobalSettings@@YGX_N@Z)
Strmbasd.lib(wxdebug.obj) : error LNK2019: unresolved external symbol
__imp__StringFromGUID2@12 referenced in function "public: __thiscall
CDisp::CDisp(struct _GUID const &)" ( 0CDisp@@QAE@ABU_GUID@@@Z)
Debug\AmCap.exe : fatal error LNK1120: 89 unresolved externals
What might be the problem Thanks!
Visual C++12
|
| |
|
| |
 |
einaros

|
Posted: Visual C++ General, Linking errors building AMCap (sample from DirectShow, SDK ) |
Top |
You need to link a few more libraries, such as ole32.lib and user32.lib. Try setting the "Additional Dependencies" setting found in your project properties' (ALT+F7) -> configuration properties -> linker -> input to
shlwapi.lib kernel32.lib user32.lib advapi32.lib shell32.lib ole32.lib
|
| |
|
| |
 |
toratora

|
Posted: Visual C++ General, Linking errors building AMCap (sample from DirectShow, SDK ) |
Top |
Thanks for the tip, though I still get some linking error (only 16 now):
amcap.obj : error LNK2019: unresolved external symbol __imp__VariantClear@4 referenced in function "long __cdecl CreateKernelFilter(struct _GUID const &,wchar_t const *,struct IBaseFilter * *)" ( CreateKernelFilter@@YAJABU_GUID@@PB_WPAPAUIBaseFilter@@@Z) amcap.obj : error LNK2019: unresolved external symbol __imp__VariantInit@4 referenced in function "long __cdecl CreateKernelFilter(struct _GUID const &,wchar_t const *,struct IBaseFilter * *)" ( CreateKernelFilter@@YAJABU_GUID@@PB_WPAPAUIBaseFilter@@@Z) amcap.obj : error LNK2019: unresolved external symbol __imp__GetSystemPaletteEntries@16 referenced in function "long __cdecl CreateRGBVideoType(struct _AMMediaType &,unsigned short,long,long,double)" ( CreateRGBVideoType@@YAJAAU_AMMediaType@@GJJN@Z) amcap.obj : error LNK2019: unresolved external symbol __imp__GetTextMetricsW@8 referenced in function "int __cdecl AppInit(struct HINSTANCE__ *,struct HINSTANCE__ *,int)" ( AppInit@@YAHPAUHINSTANCE__@@0H@Z) status.obj : error LNK2001: unresolved external symbol __imp__GetTextMetricsW@8 amcap.obj : error LNK2019: unresolved external symbol __imp__SelectObject@8 referenced in function "int __cdecl AppInit(struct HINSTANCE__ *,struct HINSTANCE__ *,int)" ( AppInit@@YAHPAUHINSTANCE__@@0H@Z) status.obj : error LNK2001: unresolved external symbol __imp__SelectObject@8 amcap.obj : error LNK2019: unresolved external symbol __imp__GetStockObject@4 referenced in function "int __cdecl AppInit(struct HINSTANCE__ *,struct HINSTANCE__ *,int)" ( AppInit@@YAHPAUHINSTANCE__@@0H@Z) status.obj : error LNK2001: unresolved external symbol __imp__GetStockObject@4 amcap.obj : error LNK2019: unresolved external symbol __imp__SysFreeString@4 referenced in function "int __cdecl InitCapFilters(void)" ( InitCapFilters@@YAHXZ) amcap.obj : error LNK2019: unresolved external symbol __imp__OleCreatePropertyFrame@44 referenced in function "long __stdcall AppCommand(struct HWND__ *,unsigned int,unsigned int,long)" ( AppCommand@@YGJPAUHWND__@@IIJ@Z) amcap.obj : error LNK2019: unresolved external symbol __imp__GetOpenFileNameW@4 referenced in function "int __cdecl OpenFileDialog(struct HWND__ *,wchar_t *,int)" ( OpenFileDialog@@YAHPAUHWND__@@PA_WH@Z) status.obj : error LNK2019: unresolved external symbol __imp__CreateFontW@56 referenced in function "void __cdecl statusCreateTools(void)" ( statusCreateTools@@YAXXZ) status.obj : error LNK2019: unresolved external symbol __imp__CreateSolidBrush@4 referenced in function "void __cdecl statusCreateTools(void)" ( statusCreateTools@@YAXXZ) status.obj : error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function "void __cdecl statusDeleteTools(void)" ( statusDeleteTools@@YAXXZ) status.obj : error LNK2019: unresolved external symbol __imp__PatBlt@24 referenced in function "void __cdecl PaintText(struct HWND__ *,struct HDC__ *)" ( PaintText@@YAXPAUHWND__@@PAUHDC__@@@Z) status.obj : error LNK2019: unresolved external symbol __imp__ExtTextOutW@32 referenced in function "void __cdecl PaintText(struct HWND__ *,struct HDC__ *)" ( PaintText@@YAXPAUHWND__@@PAUHDC__@@@Z) status.obj : error LNK2019: unresolved external symbol __imp__SetTextColor@8 referenced in function "void __cdecl PaintText(struct HWND__ *,struct HDC__ *)" ( PaintText@@YAXPAUHWND__@@PAUHDC__@@@Z) status.obj : error LNK2019: unresolved external symbol __imp__SetBkColor@8 referenced in function "void __cdecl PaintText(struct HWND__ *,struct HDC__ *)" ( PaintText@@YAXPAUHWND__@@PAUHDC__@@@Z) Debug\AmCap.exe : fatal error LNK1120: 16 unresolved externals
What's missing now Thanks!
|
| |
|
| |
 |
| |
|