我正在尝试使用 VS2005 在 Windows 上构建 wpa_supplicant 应用程序。当我构建它时,我收到一个链接错误:
------ Rebuild All started: Project: wpa_cli, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'wpa_cli', configuration 'Release|Win32'
Compiling...
wpa_ctrl.c
wpa_cli.c
os_win32.c
common.c
Linking...
wpa_cli.obj : error LNK2001: unresolved external symbol _eloop_init
wpa_cli.obj : error LNK2001: unresolved external symbol _eloop_unregister_read_sock
wpa_cli.obj : error LNK2001: unresolved external symbol _eloop_register_timeout
wpa_cli.obj : error LNK2001: unresolved external symbol _edit_redraw
wpa_cli.obj : error LNK2001: unresolved external symbol _edit_init
wpa_cli.obj : error LNK2001: unresolved external symbol _eloop_register_read_sock
wpa_cli.obj : error LNK2001: unresolved external symbol _eloop_destroy
wpa_cli.obj : error LNK2001: unresolved external symbol _eloop_terminate
wpa_cli.obj : error LNK2001: unresolved external symbol _eloop_register_signal_terminate
wpa_cli.obj : error LNK2001: unresolved external symbol _eloop_run
wpa_cli.obj : error LNK2001: unresolved external symbol _eloop_cancel_timeout
wpa_cli.obj : error LNK2001: unresolved external symbol _edit_deinit
wpa_cli.obj : error LNK2001: unresolved external symbol _edit_clear_line
D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0
\wpa_supplicant\vs2005\Release\wpa_cli.exe : fatal error LNK1120: 13 unresolved externals
我已经给出了额外的包含目录,其中定义了 eloop_init、eloop_unregister_read_sock 等。