Statically linking issues

There are some crates/library, for example using the fltk-rs library/crate (on Windows 10), if I tried to cargo build it, then I get the following errors (a sample of it):

= note: LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(pngmem.c.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(gzwrite.c.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(zutil.c.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(jmemnobs.c.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(gzlib.c.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(gzread.c.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(filename_list.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(scandir_win32.c.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Message.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(filename_absolute.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(png.c.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Image_Reader.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_WinAPI_Window_Driver.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(fl_dnd_win32.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_WinAPI_System_Driver.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_GDI_Graphics_Driver_image.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Preferences.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_GDI_Graphics_Driver_font.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(fl_utf8.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_System_Driver.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Help_View.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Browser.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Check_Browser.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_File_Browser.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Simple_Terminal.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Text_Editor.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Tabs.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Chart.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Tree_Item.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Tree.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Text_Buffer.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Text_Display.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Input_.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_JPEG_Image.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_SVG_Image.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Tree_Item_Array.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Menu.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Menu_add.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Menu_.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_SVG_File_Surface.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_GDI_Graphics_Driver.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(fl_encoding_mac_roman.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_File_Chooser2.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Native_File_Chooser_WIN32.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Table.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Table_Row.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Graphics_Driver.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_win32.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Widget.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Tooltip.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Window.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Group.cxx.obj)'
          LINK : warning LNK4217: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(cfl_window.cpp.obj)' in function 'resolve_raw_handle'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(cfl_new.cpp.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_File_Icon.cxx.obj)'
          LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_get_system_colors.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(zutil.c.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(jmemnobs.c.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(case.c.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(scandir_win32.c.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(pngmem.c.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(gzwrite.c.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(fl_dnd_win32.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_WinAPI_System_Driver.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(gzlib.c.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(gzread.c.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_GDI_Graphics_Driver_font.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(fl_utf8.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_System_Driver.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_WinAPI_Window_Driver.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Help_View.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Browser.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Check_Browser.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Preferences.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Tree.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Text_Buffer.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Simple_Terminal.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Tabs.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Input.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_JPEG_Image.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_SVG_Image.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Tree_Item_Array.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Native_File_Chooser_WIN32.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Menu.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_SVG_File_Surface.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Input_.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_GDI_Graphics_Driver.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(fl_draw.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(fl_encoding_mac_roman.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(fl_draw_pixmap.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(fl_set_font.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_lock.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Group.cxx.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_win32.cxx.obj)'
          LINK : warning LNK4217: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(cfl_window.cpp.obj)' in function 'Fl_Double_Window_raw_handle'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(cfl_tree.cpp.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(cfl_new.cpp.obj)'
          LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_File_Icon.cxx.obj)'
          LINK : warning LNK4286: symbol 'calloc' defined in 'libucrt.lib(calloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_WinAPI_System_Driver.cxx.obj)'
          LINK : warning LNK4217: symbol 'calloc' defined in 'libucrt.lib(calloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(scandir_win32.c.obj)' in function 'fl_scandir'
          LINK : warning LNK4217: symbol 'calloc' defined in 'libucrt.lib(calloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_File_Icon.cxx.obj)' in function '"public: __cdecl Fl_File_Icon::Fl_File_Icon(char const *,int,int,short *)" (??0Fl_File_Icon@@QEAA@PEBDHHPEAF@Z)'
          LINK : warning LNK4286: symbol 'calloc' defined in 'libucrt.lib(calloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_SVG_File_Surface.cxx.obj)'
          LINK : warning LNK4286: symbol 'calloc' defined in 'libucrt.lib(calloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Chart.cxx.obj)'
          LINK : warning LNK4286: symbol 'calloc' defined in 'libucrt.lib(calloc.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Help_View.cxx.obj)'
          LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrt.lib(output.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(gzlib.c.obj)'
          LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrt.lib(output.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(gzwrite.c.obj)'
          LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrt.lib(output.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_WinAPI_System_Driver.cxx.obj)'
          LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrt.lib(output.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(vsnprintf.c.obj)'
          LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrt.lib(output.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(jerror.c.obj)'
          LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrt.lib(output.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_WinAPI_Printer_Driver.cxx.obj)'
          LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrt.lib(output.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Text_Display.cxx.obj)'
          LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrt.lib(output.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Spinner.cxx.obj)'
          LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrt.lib(output.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Preferences.cxx.obj)'
          LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrt.lib(output.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_Screen_Driver.cxx.obj)'
          LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrt.lib(output.obj)' is imported by 'libfltk_sys-4f919383c6ce2fad.rlib(Fl_SVG_File_Surface.cxx.obj)'

It turns out that if I go to %userprofile%\.cargo\config.toml file, and removed this:

[target.'cfg(windows)']
rustflags = ["-C", "target-feature=+crt-static"]

it works then. However the problem is that if I copied the executable to another computer that does not have the Visual Studio build tools installed, then the application would not work.

How would this issue be solved then where I statically link and it will still build?

The ucrt was introduced in windows 10, but has been backported to windows versions all the way back to windows vista, so even if you don't install the visual studio build tools, it should still work with dynamic linking to the ucrt for as long as you have windows updates enabled. See Universal CRT deployment | Microsoft Docs for more info. If you don't have windows updates enabled, you can still find download links at Update for Universal C Runtime in Windows As for an introduction to what the ucrt is, see Introducing the Universal CRT - C++ Team Blog.

2 Likes