AnsweredAssumed Answered

SOLVED: STM32746G-Discovery STemWin Visual Studio 2015 Build Errors

Question asked by sklv on Aug 23, 2016
Latest reply on Aug 24, 2016 by sklv
Hi all,

I'm attempting to build the STemWin_Simulation project supplied in STM32Cube_FW_F7_V1.4.0 in Visual Studio 2015 Community on Windows 10. I'm stuck:

Open project Simulation.vcxproj:

I'm prompted to update the project. I choose to upgrade.

Upgrading project 'Simulation'...
     Configuration 'Debug|Win32': changing Platform Toolset to 'v140' (was 'v110').
     Configuration 'Release|Win32': changing Platform Toolset to 'v140' (was 'v110').
Retargeting End: 1 completed, 0 failed, 0 skipped

Build all:

1>------ Build started: Project: Simulation, Configuration: Debug Win32 ------
1>cl : Command line error D8016: '/ZI' and '/Gy-' command-line options are incompatible
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Set Project Properties->C/C++/Debug Information Format to Program Database (/Zi)

Build all:

1>------ Build started: Project: Simulation, Configuration: Debug Win32 ------
1>  SIMConf.c
1>  LCDConf.c
1>  GUIConf.c
1>  MainTask.c
1>  WinMain.c
1>  Generating Code...
1>* linker generated manifest res * : warning LNK4078: multiple '.rsrc' sections found with different attributes (40000040)
1>libcmt.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol __seh_filter_exe referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ)
1>libcmt.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol __set_app_type referenced in function "int __cdecl pre_c_initialization(void)" (?pre_c_initialization@@YAHXZ)
1>libcmt.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol ___setusermatherr referenced in function "int __cdecl pre_c_initialization(void)" (?pre_c_initialization@@YAHXZ)
1>libcmt.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol __configure_narrow_argv referenced in function "int __cdecl pre_c_initialization(void)" (?pre_c_initialization@@YAHXZ)
1>libcmt.lib(utility.obj) : error LNK2001: unresolved external symbol __configure_narrow_argv
1>libcmt.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol __initialize_narrow_environment referenced in function "int __cdecl pre_c_initialization(void)" (?pre_c_initialization@@YAHXZ)
1>libcmt.lib(utility.obj) : error LNK2001: unresolved external symbol __initialize_narrow_environment
1>libcmt.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol __get_narrow_winmain_command_line referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ)
1>libcmt.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol __initterm referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ)
1>libcmt.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol __initterm_e referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ)
1>libcmt.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol _exit referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ)
1>libcmt.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol __exit referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ)
1>libcmt.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol __set_fmode referenced in function "int __cdecl pre_c_initialization(void)" (?pre_c_initialization@@YAHXZ)
1>libcmt.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol __cexit referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ)
1>libcmt.lib(utility.obj) : error LNK2001: unresolved external symbol __cexit
1>libcmt.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol __c_exit referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ)
1>libcmt.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol __register_thread_local_exe_atexit_callback referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ)
1>libcmt.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol __configthreadlocale referenced in function "int __cdecl pre_c_initialization(void)" (?pre_c_initialization@@YAHXZ)
1>libcmt.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol __set_new_mode referenced in function "void __cdecl pre_cpp_initialization(void)" (?pre_cpp_initialization@@YAXXZ)
1>libcmt.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol ___p__commode referenced in function "int __cdecl pre_c_initialization(void)" (?pre_c_initialization@@YAHXZ)
1>libcmt.lib(exe_winmain.obj) : error LNK2001: unresolved external symbol __except_handler4
1>libcmt.lib(_error_.obj) : error LNK2001: unresolved external symbol __except_handler4
1>libcmt.lib(utility.obj) : error LNK2001: unresolved external symbol __except_handler4
1>libcmt.lib(_sehprolg4_.obj) : error LNK2001: unresolved external symbol __except_handler4
1>libcmt.lib(_error_.obj) : error LNK2019: unresolved external symbol ___stdio_common_vsprintf_s referenced in function __vsprintf_s_l
1>libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol __seh_filter_dll referenced in function ___scrt_dllmain_exception_filter
1>libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol __initialize_onexit_table referenced in function ___scrt_initialize_onexit_tables
1>libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol __register_onexit_function referenced in function __onexit
1>libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol __execute_onexit_table referenced in function ___scrt_dllmain_uninitialize_c
1>libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol __crt_atexit referenced in function __onexit
1>libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol __crt_at_quick_exit referenced in function _at_quick_exit
1>libcmt.lib(tncleanup.obj) : error LNK2019: unresolved external symbol ___std_type_info_destroy_list referenced in function "void __cdecl __scrt_uninitialize_type_info(void)" (?__scrt_uninitialize_type_info@@YAXXZ)
1>libcmt.lib(default_precision.obj) : error LNK2019: unresolved external symbol __controlfp_s referenced in function __initialize_default_precision
1>libcmt.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol _terminate referenced in function ___scrt_unhandled_exception_filter@4
1>libcmt.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol _memset referenced in function ___scrt_fastfail
1>STemWin528_WIN32.lib(GUIDRV_Win32.obj) : error LNK2001: unresolved external symbol _memset
1>STemWin528_WIN32.lib(GUIDEV_UsageBM.obj) : error LNK2001: unresolved external symbol _memset
1>libcmt.lib(_pdblkup_.obj) : error LNK2019: unresolved external symbol ___vcrt_GetModuleFileNameW referenced in function "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z)
1>libcmt.lib(_pdblkup_.obj) : error LNK2019: unresolved external symbol ___vcrt_LoadLibraryExW referenced in function "struct HINSTANCE__ * __cdecl GetPdbDllFromInstallPath(void)" (?GetPdbDllFromInstallPath@@YAPAUHINSTANCE__@@XZ)
1>STemWin528_WIN32.lib(GUIDEV_StaticDevices.obj) : error LNK2001: unresolved external symbol _memcpy
1>STemWin528_WIN32.lib(GUI_SetAlpha.obj) : error LNK2001: unresolved external symbol _memcpy
1>STemWin528_WIN32.lib(GUI_Alloc.obj) : error LNK2001: unresolved external symbol _memcpy
1>STemWin528_WIN32.lib(GUIDEV_8.obj) : error LNK2001: unresolved external symbol _memcpy
1>STemWin528_WIN32.lib(GUIDEV_16.obj) : error LNK2001: unresolved external symbol _memcpy
1>STemWin528_WIN32.lib(GUIDEV_32.obj) : error LNK2001: unresolved external symbol _memcpy
1>STemWin528_WIN32.lib(GUI_Alloc.obj) : error LNK2019: unresolved external symbol _memmove referenced in function __RemoveHoles
1>GUISim.lib(SIM_GetRegions.OBJ) : error LNK2001: unresolved external symbol _memmove
1>STemWin528_WIN32.lib(GUI_ErrorOut.obj) : error LNK2019: unresolved external symbol _strlen referenced in function _GUI_ErrorOut1
1>STemWin528_WIN32.lib(GUI_Warn.obj) : error LNK2001: unresolved external symbol _strlen
1>GUISim.lib(SIM_GUI_App.OBJ) : error LNK2019: unresolved external symbol __ftol referenced in function __AdjustXPos@8
1>GUISim.lib(SIM_GUI_App.OBJ) : error LNK2019: unresolved external symbol _sprintf referenced in function __WndProcSysInfo@16
1>GUISim.lib(LCDSIM.OBJ) : error LNK2001: unresolved external symbol _sprintf
1>GUISim.lib(SIM_GUI_Log.OBJ) : error LNK2001: unresolved external symbol _sprintf
1>GUISim.lib(SIM_GetRegions.OBJ) : error LNK2019: unresolved external symbol _free referenced in function __AddRegion
1>GUISim.lib(SIM_GetRegions.OBJ) : error LNK2019: unresolved external symbol _calloc referenced in function __AddRegion
1>STemWin528_WIN32.lib(GUI_TOUCH.obj) : error LNK2019: unresolved external symbol _memcmp referenced in function _GUI_TOUCH_StoreStateEx
1>STemWin528_WIN32.lib(GUI_MOUSE.obj) : error LNK2001: unresolved external symbol _memcmp
1>.\Output\Exe\Simulation.exe : fatal error LNK1120: 39 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I'm not sure how to fix this. Any ideas?

Edit: I see now the probably belongs in STM32 Software Tools and Firmware. Oops.

Outcomes