C++ MFC静态链接未解析的外部符号
我正在尝试使用MFC的C++ MFC静态链接未解析的外部符号,c++,visual-c++,mfc,gyazowin,C++,Visual C++,Mfc,Gyazowin,我正在尝试使用MFC的用法构建GyazoWin的自定义版本:在静态库中使用MFC,这会导致大量引用错误 如何安抚Visual Studio,以便使用静态链接库进行构建 更新 我设法将user32添加到链接库中(我想),现在我只有三分之一的错误。有人能告诉我现在缺了什么图书馆吗 Error 2 error LNK2019: unresolved external symbol __imp__BitBlt@36 referenced in function "long __stdcall W
用法构建GyazoWin的自定义版本:
在静态库中使用MFC
,这会导致大量引用错误
如何安抚Visual Studio,以便使用静态链接库进行构建
更新
我设法将user32添加到链接库中(我想),现在我只有三分之一的错误。有人能告诉我现在缺了什么图书馆吗
Error 2 error LNK2019: unresolved external symbol __imp__BitBlt@36 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\gyazowin\gyazowin.obj gyazowin
Error 3 error LNK2019: unresolved external symbol __imp__CreateCompatibleBitmap@12 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\gyazowin\gyazowin.obj gyazowin
Error 4 error LNK2019: unresolved external symbol __imp__CreateCompatibleDC@4 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\gyazowin\gyazowin.obj gyazowin
Error 5 error LNK2019: unresolved external symbol __imp__CreateFontW@56 referenced in function "long __stdcall LayerWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?LayerWndProc@@YGJPAUHWND__@@IIJ@Z) S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\gyazowin\gyazowin.obj gyazowin
Error 6 error LNK2019: unresolved external symbol __imp__CreatePen@12 referenced in function "long __stdcall LayerWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?LayerWndProc@@YGJPAUHWND__@@IIJ@Z) S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\gyazowin\gyazowin.obj gyazowin
Error 7 error LNK2019: unresolved external symbol __imp__CreateSolidBrush@4 referenced in function "long __stdcall LayerWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?LayerWndProc@@YGJPAUHWND__@@IIJ@Z) S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\gyazowin\gyazowin.obj gyazowin
Error 8 error LNK2019: unresolved external symbol __imp__DeleteDC@4 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\gyazowin\gyazowin.obj gyazowin
Error 9 error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function "long __stdcall LayerWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?LayerWndProc@@YGJPAUHWND__@@IIJ@Z) S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\gyazowin\gyazowin.obj gyazowin
Error 10 error LNK2019: unresolved external symbol __imp__GetDeviceCaps@8 referenced in function "long __stdcall LayerWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?LayerWndProc@@YGJPAUHWND__@@IIJ@Z) S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\gyazowin\gyazowin.obj gyazowin
Error 11 error LNK2019: unresolved external symbol __imp__GetStockObject@4 referenced in function "unsigned short __cdecl MyRegisterClass(struct HINSTANCE__ *)" (?MyRegisterClass@@YAGPAUHINSTANCE__@@@Z) S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\gyazowin\gyazowin.obj gyazowin
Error 12 error LNK2019: unresolved external symbol __imp__Rectangle@20 referenced in function "long __stdcall LayerWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?LayerWndProc@@YGJPAUHWND__@@IIJ@Z) S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\gyazowin\gyazowin.obj gyazowin
Error 13 error LNK2019: unresolved external symbol __imp__SelectObject@8 referenced in function "long __stdcall LayerWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?LayerWndProc@@YGJPAUHWND__@@IIJ@Z) S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\gyazowin\gyazowin.obj gyazowin
Error 14 error LNK2019: unresolved external symbol __imp__SetBkMode@8 referenced in function "long __stdcall LayerWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?LayerWndProc@@YGJPAUHWND__@@IIJ@Z) S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\gyazowin\gyazowin.obj gyazowin
Error 15 error LNK2019: unresolved external symbol __imp__SetTextColor@8 referenced in function "long __stdcall LayerWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?LayerWndProc@@YGJPAUHWND__@@IIJ@Z) S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\gyazowin\gyazowin.obj gyazowin
Error 16 error LNK2019: unresolved external symbol __imp__TextOutW@20 referenced in function "long __stdcall LayerWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?LayerWndProc@@YGJPAUHWND__@@IIJ@Z) S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\gyazowin\gyazowin.obj gyazowin
Error 17 error LNK2019: unresolved external symbol __imp__ShellExecuteExW@4 referenced in function "void __cdecl execUrl(char const *)" (?execUrl@@YAXPBD@Z) S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\gyazowin\gyazowin.obj gyazowin
Error 18 error LNK2019: unresolved external symbol __imp__SHGetSpecialFolderPathW@16 referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl getId(void)" (?getId@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\gyazowin\gyazowin.obj gyazowin
Error 19 error LNK1120: 17 unresolved externals S:\Software\Microsoft\Visual Studio\Projects\Completed (New)\gyazowin\Debug\gyazowin.exe gyazowin
错误2错误LNK2019:未解析的外部符号\uuu imp__BitBlt@36在函数“long\uu stdcall WndProc(struct HWND\uuu*,unsigned int,unsigned int,long)”中引用(?WndProc@@YGJPAUHWND)__@@IIJ@Z)S:\Software\Microsoft\visualstudio\Projects\Completed(New)\gyazown\gyazown\gyazown.obj gyazown
错误3错误LNK2019:未解析的外部符号\uuu imp__CreateCompatibleBitmap@12在函数“long\uu stdcall WndProc(struct HWND\uuu*,unsigned int,unsigned int,long)”中引用(?WndProc@@YGJPAUHWND)__@@IIJ@Z)S:\Software\Microsoft\visualstudio\Projects\Completed(New)\gyazown\gyazown\gyazown.obj gyazown
错误4错误LNK2019:未解析的外部符号\uuu imp__CreateCompatibleDC@4在函数“long\uu stdcall WndProc(struct HWND\uuu*,unsigned int,unsigned int,long)”中引用(?WndProc@@YGJPAUHWND)__@@IIJ@Z)S:\Software\Microsoft\visualstudio\Projects\Completed(New)\gyazown\gyazown\gyazown.obj gyazown
错误5错误LNK2019:未解析的外部符号\uuu imp__CreateFontW@56在函数“long\uu stdcall LayerWndProc(struct HWND\uuu*,unsigned int,unsigned int,long)”中引用(?LayerWndProc@@YGJPAUHWND)__@@IIJ@Z)S:\Software\Microsoft\visualstudio\Projects\Completed(New)\gyazown\gyazown\gyazown.obj gyazown
错误6错误LNK2019:未解析的外部符号\uuu imp__CreatePen@12在函数“long\uu stdcall LayerWndProc(struct HWND\uuu*,unsigned int,unsigned int,long)”中引用(?LayerWndProc@@YGJPAUHWND)__@@IIJ@Z)S:\Software\Microsoft\visualstudio\Projects\Completed(New)\gyazown\gyazown\gyazown.obj gyazown
错误7错误LNK2019:未解析的外部符号\uuu imp__CreateSolidBrush@4在函数“long\uu stdcall LayerWndProc(struct HWND\uuu*,unsigned int,unsigned int,long)”中引用(?LayerWndProc@@YGJPAUHWND)__@@IIJ@Z)S:\Software\Microsoft\visualstudio\Projects\Completed(New)\gyazown\gyazown\gyazown.obj gyazown
错误8错误LNK2019:未解析的外部符号\uuu imp__DeleteDC@4在函数“long\uu stdcall WndProc(struct HWND\uuu*,unsigned int,unsigned int,long)”中引用(?WndProc@@YGJPAUHWND)__@@IIJ@Z)S:\Software\Microsoft\visualstudio\Projects\Completed(New)\gyazown\gyazown\gyazown.obj gyazown
错误9错误LNK2019:未解析的外部符号\uuu imp__DeleteObject@4在函数“long\uu stdcall LayerWndProc(struct HWND\uuu*,unsigned int,unsigned int,long)”中引用(?LayerWndProc@@YGJPAUHWND)__@@IIJ@Z)S:\Software\Microsoft\visualstudio\Projects\Completed(New)\gyazown\gyazown\gyazown.obj gyazown
错误10错误LNK2019:未解析的外部符号\uuu imp__GetDeviceCaps@8在函数“long\uu stdcall LayerWndProc(struct HWND\uuu*,unsigned int,unsigned int,long)”中引用(?LayerWndProc@@YGJPAUHWND)__@@IIJ@Z)S:\Software\Microsoft\visualstudio\Projects\Completed(New)\gyazown\gyazown\gyazown.obj gyazown
错误11错误LNK2019:未解析的外部符号\uuu imp__GetStockObject@4在函数“unsigned short\uu cdecl MyRegisterClass(struct HINSTANCE\uuu*)”(?MyRegisterClass@@@YAGPAUHINSTANCE\uuuz)S:\Software\Microsoft\Visual Studio\Projects\Completed(New)\gyazown\gyazown\gyazown.obj gyazown中引用
错误12错误LNK2019:未解析的外部符号\uuu imp__Rectangle@20在函数“long\uu stdcall LayerWndProc(struct HWND\uuu*,unsigned int,unsigned int,long)”中引用(?LayerWndProc@@YGJPAUHWND)__@@IIJ@Z)S:\Software\Microsoft\visualstudio\Projects\Completed(New)\gyazown\gyazown\gyazown.obj gyazown
错误13错误LNK2019:未解析的外部符号\uuu imp__SelectObject@8在函数“long\uu stdcall LayerWndProc(struct HWND\uuu*,unsigned int,unsigned int,long)”中引用(?LayerWndProc@@YGJPAUHWND)__@@IIJ@Z)S:\Software\Microsoft\visualstudio\Projects\Completed(New)\gyazown\gyazown\gyazown.obj gyazown
错误14错误LNK2019:未解析的外部符号\uuu imp__SetBkMode@8在函数“long\uu stdcall LayerWndProc(struct HWND\uuu*,unsigned int,unsigned int,long)”中引用(?LayerWndProc@@YGJPAUHWND)__@@IIJ@Z)S:\Software\Microsoft\visualstudio\Projects\Completed(New)\gyazown\gyazown\gyazown.obj gyazown
错误15错误LNK2019:未解析的外部符号\uuu imp__SetTextColor@8在函数“long\uu stdcall LayerWndProc(struct HWND\uuu*,unsigned int,unsigned int,long)”中引用(?LayerWndProc@@YGJPAUHWND)__@@IIJ@Z)S:\Software\Microsoft\visualstudio\Projects\Completed(New)\gyazown\gyazown\gyazown.obj gyazown
错误16错误LNK2019:未解析的外部符号\uuu imp__TextOutW@20在函数“long\uu stdcall LayerWndProc(struct HWND\uuu*,unsigned int,unsigned int,long)”中引用(?LayerWndProc@@YGJPAUHWND)__@@IIJ@Z)S:\Software\Microsoft\visualstudio\Projects\Completed(New)\gyazown\gyazown\gyazown.obj gyazown
错误17错误LNK2019:未解析的外部符号\uuu imp__ShellExecuteExW@4在函数“void\uu cdecl execUrl(char const*)”中引用(?execUrl@@YAXPBD@Z)S:\Software\Microsoft\visualstudio\Projects\Completed(New)\gyazown\gyazown\gyazown.obj gyazown
错误18错误LNK2019:未解析的外部符号\uuu imp__SHGetSpecialFolderPathW@16在函数“class std::basic\u string\uu cdecl getId(void)”中引用(?getId@@YA?AV?$basic_string@DU?$char_traits@D@性病病毒$allocator@D@2@@std@@XZ)S:\Software\Microsoft\visualstudio\Projects\Completed(New)\gyazown\gyazown\gyazown.obj gyazown
错误19错误LNK1120:17未解析的外部文件:\Software\Microsoft\visualstudio\Projects\Completed(New)\gyazown\Debug\gyazown.exe gyazown
用于功能