Building ConEmu

Problems with ConEmu building from 
https://github.com/Maximus5/ConEmu.git v14.01.06
in Visual Studio 2010

ConEmuC

unresolved external symbol __imp__wsprintfA - add additional dependency User32.lib


ConEmuCD

Error 3 error LNK2001: unresolved external symbol __imp__CharUpperBuffW@8
Error 4 error LNK2001: unresolved external symbol __imp__MapVirtualKeyW@8
Error 5 error LNK2001: unresolved external symbol __imp__VkKeyScanW@4
Error 6 error LNK2001: unresolved external symbol __imp__GetSystemMetrics@4
Error 7 error LNK2001: unresolved external symbol __imp__IsRectEmpty@4
Error 8 error LNK2001: unresolved external symbol __imp__MonitorFromRect@8
Error 9 error LNK2001: unresolved external symbol __imp__GetMonitorInfoW@8
Error 10 error LNK2001: unresolved external symbol __imp__MonitorFromWindow@8
Error 11 error LNK2001: unresolved external symbol __imp__SystemParametersInfoW@16
etc.

Error 101 error LNK1120: 98 unresolved externals

add User32.lib to reduce number of warnings from 99 to 32

Error 3 error LNK2001: unresolved external symbol __imp__LogonUserW@24
Error 4 error LNK2001: unresolved external symbol __imp__RegCreateKeyExW@36
Error 5 error LNK2001: unresolved external symbol __imp__RegQueryValueExW@24
Error 6 error LNK2001: unresolved external symbol __imp__CreateCompatibleDC@4

add advapi32.lib to reduce number of warnings from 32 to 14

Error 3 error LNK2001: unresolved external symbol __imp__SHGetFolderPathW@20
Error 4 error LNK2001: unresolved external symbol __imp__ShellExecuteExW@4
Error 5 error LNK2001: unresolved external symbol __imp__ShellExecuteW@24

add gdi32.lib to reduce number of errors from 14 to 3.
add shell32.lib to reduce number of errors to 0

ConEmuHk

Error 3 error LNK2001: unresolved external symbol __imp__CharUpperBuffW@8
Error 4 error LNK2001: unresolved external symbol __imp__MapVirtualKeyW@8
Error 5 error LNK2001: unresolved external symbol __imp__VkKeyScanW@4
Error 6 error LNK2001: unresolved external symbol __imp__GetCursorPos@4
Error 7 error LNK2001: unresolved external symbol __imp__MapVirtualKeyExW@12
.....

Add User32.lib to reduce from 20 to 4:

Error 3 error LNK2001: unresolved external symbol __imp__RegOpenKeyExW@20
Error 4 error LNK2001: unresolved external symbol __imp__RegCloseKey@4
Error 5 error LNK2001: unresolved external symbol __imp__LogonUserW@24

Add advapi32.lib to fix all


Bonus:

links to Russian habrahabr:
http://habrahabr.ru/company/epam_systems/blog/204368/

No comments:

Post a Comment