Link errors when running bootstrap.bat from ICC 19.1 command line in windows 10
- Dominant language
- C++
- Stars
- 251
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to generate the Boost 1.72.0 libraries using the Intel C++ compiler 19.1 in windows 10, using the command:
bootstrap intel-win32
from the Boost root directory. Here are the errors in bootstrap.log:
execnt.obj : error LNK2019: unresolved external symbol __imp_SetSecurityDescriptorDacl referenced in function "void __cdecl exec_cmd(struct string const *,int,void (__cdecl*)(void * const,int,struct timing_info const * const,char const * const,char const * const,int),void *,struct _list *)" (?exec_cmd@@YAXPEBUstring@@HP6AXQEAXHQEBUtiming_info@@QEBD3H@ZPEAXPEAU_list@@@Z)
execnt.obj : error LNK2019: unresolved external symbol __imp_InitializeSecurityDescriptor referenced in function "void __cdecl exec_cmd(struct string const *,int,void (__cdecl*)(void * const,int,struct timing_info const * const,char const * const,char const * const,int),void *,struct _list *)" (?exec_cmd@@YAXPEBUstring@@HP6AXQEAXHQEBUtiming_info@@QEBD3H@ZPEAXPEAU_list@@@Z)
execnt.obj : error LNK2019: unresolved external symbol __imp_EnumWindows referenced in function "void __cdecl exec_wait(void)" (?exec_wait@@YAXXZ)
execnt.obj : error LNK2019: unresolved external symbol __imp_PostThreadMessageA referenced in function "int __cdecl close_alert_window_enum(struct HWND__ *,__int64)" (?close_alert_window_enum@@YAHPEAUHWND__@@_J@Z)
execnt.obj : error LNK2019: unresolved external symbol __imp_PostMessageA referenced in function "int __cdecl close_alert_window_enum(struct HWND__ *,__int64)" (?close_alert_window_enum@@YAHPEAUHWND__@@_J@Z)
execnt.obj : error LNK2019: unresolved external symbol __imp_GetWindowThreadProcessId referenced in function "int __cdecl close_alert_window_enum(struct HWND__ *,__int64)" (?close_alert_window_enum@@YAHPEAUHWND__@@_J@Z)
execnt.obj : error LNK2019: unresolved external symbol __imp_GetClassNameA referenced in function "int __cdecl close_alert_window_enum(struct HWND__ *,__int64)" (?close_alert_window_enum@@YAHPEAUHWND__@@_J@Z)
execnt.obj : error LNK2019: unresolved external symbol __imp_IsWindowVisible referenced in function "int __cdecl close_alert_window_enum(struct HWND__ *,__int64)" (?close_alert_window_enum@@YAHPEAUHWND__@@_J@Z)
w32_getreg.obj : error LNK2019: unresolved external symbol __imp_RegCloseKey referenced in function "struct _list * __cdecl builtin_system_registry(struct frame *,int)" (?builtin_system_registry@@YAPEAU_list@@PEAUframe@@H@Z)
w32_getreg.obj : error LNK2019: unresolved external symbol __imp_RegQueryValueExA referenced in function "struct _list * __cdecl builtin_system_registry(struct frame *,int)" (?builtin_system_registry@@YAPEAU_list@@PEAUframe@@H@Z)
w32_getreg.obj : error LNK2019: unresolved external symbol __imp_RegOpenKeyExA referenced in function "struct _list * __cdecl builtin_system_registry(struct frame *,int)" (?builtin_system_registry@@YAPEAU_list@@PEAUframe@@H@Z)
w32_getreg.obj : error LNK2019: unresolved external symbol __imp_RegEnumKeyExA referenced in function "struct _list * __cdecl builtin_system_registry_names(struct frame *,int)" (?builtin_system_registry_names@@YAPEAU_list@@PEAUframe@@H@Z)
w32_getreg.obj : error LNK2019: unresolved external symbol __imp_RegEnumValueA referenced in function "struct _list * __cdecl builtin_system_registry_names(struct frame *,int)" (?builtin_system_registry_names@@YAPEAU_list@@PEAUframe@@H@Z)
b2.exe : fatal error LNK1120: 13 unresolved externals
help please?
many thanks.
Contributor guide
Research direction
Reproduce `bootstrap intel-win32` from the Boost root on Windows 10 with Intel C++ 19.1 and inspect `bootstrap.log`. Start with the unresolved symbols reported for `execnt.obj` and `w32_getreg.obj`, then check the linker inputs used to produce `b2.exe`. Done means bootstrap completes and `b2.exe` links without unresolved externals.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100