Build PuTTYTray under Windows7 VS2008(x86)

I write this because I encountered some problems:

1>terminal.obj : error LNK2019: unresolved external symbol _urlhack_is_in_this_link_region,referenced in function _do_paint
1>terminal.obj : error LNK2019: unresolved external symbol _urlhack_mouse_old_x,referenced in function _do_paint
1>window.obj : error LNK2001: unresolved external symbol _urlhack_mouse_old_x
1>terminal.obj : error LNK2019: unresolved external symbol _urlhack_mouse_old_y,referenced in function _do_paint
1>window.obj : error LNK2001: unresolved external symbol _urlhack_mouse_old_y
1>terminal.obj : error LNK2019: unresolved external symbol _urlhack_get_link_region,referenced in function _do_paint
1>terminal.obj : error LNK2019: unresolved external symbol _urlhack_go_find_me_some_hyperlinks,referenced in function _do_paint
1>terminal.obj : error LNK2019: unresolved external symbol _urlhack_putchar,referenced in function _do_paint
1>terminal.obj : error LNK2019: unresolved external symbol _urlhack_reset,referenced in function _do_paint
1>terminal.obj : error LNK2019: unresolved external symbol _urlhack_is_ctrl_pressed,referenced in function _do_paint
1>window.obj : error LNK2001: unresolved external symbol _urlhack_is_ctrl_pressed
1>terminal.obj : error LNK2019: unresolved external symbol _urlhack_launch_url,referenced in function _term_mouse
1>terminal.obj : error LNK2019: unresolved external symbol _urlhack_get_link_bounds,referenced in function _term_mouse
1>terminal.obj : error LNK2019: unresolved external symbol _urlhack_is_in_link_region,referenced in function _term_mouse
1>window.obj : error LNK2001: unresolved external symbol _urlhack_is_in_link_region
1>window.obj : error LNK2019: unresolved external symbol _urlhack_current_region,referenced in function _WndProc@16
1>window.obj : error LNK2019: unresolved external symbol _urlhack_set_regular_expression,referenced in function _WndProc@16
1>.\Release/putty.exe : fatal error LNK1120: 13  unresolved externals

1. PuTTYTray Source(latest commit 1d2cd79a2b)

https://github.com/FauxFaux/PuTTYTray

perl windows version

http://www.perl.org/get.html#win32


2. generate msvc project file

perl.exe  mkfiles.pl

open PuTTYTray-master\windows\MSVC\putty.dsw with Microft Visual Studio 2008,then add files

PuTTYTray-master\urlhack.cpp
PuTTYTray-master\windows\urlhack_win.cpp
PuTTYTray-master\windows\re_lib\regexp.cpp

to peoject putty and puttytel

3. Add

#define SECURITY_WIN32

to PuTTYTray-master\windows\winstuff.h



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章