Replies: 1 comment
-
|
I used WebUI GPT - C/C++ and that's what he said: Your application is being built with Debug runtime ( Hence all those Option 1: Build your app in Release mode Option 2: Rebuild WebUI in Debug mode |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've have a linking error for some reason when I try to build with msvc.
I've built the webui with no problem but when I try to build my own code with
cl test.cpp /std:c++17 /I"path wo web ui include" /link /LIBPATH:"path to web ui " /SUBSYSTEM:WINDOWS webui-2-static.lib user32.lib Advapi32.lib Shell32.lib Ole32.lib /OUT:my_application.exe
I get a bunch of linker errors for some reason:
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4217: symbol '__acrt_iob_func' defined in 'libucrt.lib(_file.obj)' is imported by 'webui-2-static.lib(webui.obj)' in function '_webui_log'
LINK : warning LNK4286: symbol '__acrt_iob_func' defined in 'libucrt.lib(_file.obj)' is imported by 'webui-2-static.lib(civetweb.obj)'
LINK : warning LNK4217: symbol 'fclose' defined in 'libucrt.lib(fclose.obj)' is imported by 'webui-2-static.lib(webui.obj)' in function '_webui_browser_create_new_profile'
LINK : warning LNK4286: symbol 'fclose' defined in 'libucrt.lib(fclose.obj)' is imported by 'webui-2-static.lib(civetweb.obj)'
LINK : warning LNK4217: symbol '__stdio_common_vfprintf' defined in 'libucrt.lib(output.obj)' is imported by 'webui-2-static.lib(webui.obj)' in function '_vfprintf_l'
LINK : warning LNK4286: symbol '__stdio_common_vfprintf' defined in 'libucrt.lib(output.obj)' is imported by 'webui-2-static.lib(civetweb.obj)'
LINK : warning LNK4217: symbol '__stdio_common_vsprintf' defined in 'libucrt.lib(output.obj)' is imported by 'webui-2-static.lib(webui.obj)' in function 'vsnprintf'
LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrt.lib(output.obj)' is imported by 'webui-2-static.lib(civetweb.obj)'
LINK : warning LNK4217: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'webui-2-static.lib(webui.obj)' in function '_webui_system_win32_out'
LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'webui-2-static.lib(win32_wv2.obj)'
LINK : warning LNK4286: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'webui-2-static.lib(civetweb.obj)'
LINK : warning LNK4217: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'webui-2-static.lib(webui.obj)' in function '_webui_malloc'
LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'webui-2-static.lib(win32_wv2.obj)'
LINK : warning LNK4286: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'webui-2-static.lib(civetweb.obj)'
LINK : warning LNK4217: symbol 'atoi' defined in 'libucrt.lib(atox.obj)' is imported by 'webui-2-static.lib(webui.obj)' in function '_webui_get_child_process_id'
LINK : warning LNK4286: symbol 'atoi' defined in 'libucrt.lib(atox.obj)' is imported by 'webui-2-static.lib(civetweb.obj)'
LINK : warning LNK4217: symbol 'strcpy_s' defined in 'libucrt.lib(strcpy_s.obj)' is imported by 'webui-2-static.lib(webui.obj)' in function 'webui_set_custom_parameters'
LINK : warning LNK4217: symbol 'strcat_s' defined in 'libucrt.lib(strcat_s.obj)' is imported by 'webui-2-static.lib(webui.obj)' in function '_webui_generate_js_bridge'
LINK : warning LNK4217: symbol 'strncmp' defined in 'libucrt.lib(strncmp.obj)' is imported by 'webui-2-static.lib(webui.obj)' in function '_webui_remove_firefox_profile_ini'
LINK : warning LNK4286: symbol 'strncmp' defined in 'libucrt.lib(strncmp.obj)' is imported by 'webui-2-static.lib(civetweb.obj)'
LINK : warning LNK4217: symbol 'wcscpy_s' defined in 'libucrt.lib(wcscpy_s.obj)' is imported by 'webui-2-static.lib(win32_wv2.obj)' in function '_webui_win32_wv2_set_url'
LINK : warning LNK4217: symbol 'wcslen' defined in 'libucrt.lib(strnlen.obj)' is imported by 'webui-2-static.lib(win32_wv2.obj)' in function '_webui_win32_wv2_set_url'
LINK : warning LNK4286: symbol 'wcslen' defined in 'libucrt.lib(strnlen.obj)' is imported by 'webui-2-static.lib(civetweb.obj)'
LINK : warning LNK4217: symbol '_errno' defined in 'libucrt.lib(errno.obj)' is imported by 'webui-2-static.lib(civetweb.obj)' in function 'check_authorization'
LINK : warning LNK4217: symbol 'fflush' defined in 'libucrt.lib(fflush.obj)' is imported by 'webui-2-static.lib(civetweb.obj)' in function 'mg_cry_internal_impl'
LINK : warning LNK4217: symbol '_fileno' defined in 'libucrt.lib(fileno.obj)' is imported by 'webui-2-static.lib(civetweb.obj)' in function 'pull_inner'
LINK : warning LNK4217: symbol 'fputc' defined in 'libucrt.lib(fputc.obj)' is imported by 'webui-2-static.lib(civetweb.obj)' in function 'mg_cry_internal_impl'
LINK : warning LNK4217: symbol 'calloc' defined in 'libucrt.lib(calloc.obj)' is imported by 'webui-2-static.lib(civetweb.obj)' in function 'mg_calloc'
LINK : warning LNK4217: symbol 'wcscmp' defined in 'libucrt.lib(wcscmpc.obj)' is imported by 'webui-2-static.lib(civetweb.obj)' in function 'path_to_unicode'
LINK : warning LNK4217: symbol '_read' defined in 'libucrt.lib(read.obj)' is imported by 'webui-2-static.lib(civetweb.obj)' in function 'pull_inner'
LINK : warning LNK4217: symbol '_lseeki64' defined in 'libucrt.lib(lseek.obj)' is imported by 'webui-2-static.lib(civetweb.obj)' in function 'send_file_data'
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp__wassert referenced in function webui_get_new_window_id
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp_isalnum referenced in function _webui_url_encode
webui-2-static.lib(civetweb.obj) : error LNK2001: unresolved external symbol __imp_isalnum
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp_fopen_s referenced in function _webui_browser_create_new_profile
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp_fgets referenced in function _webui_remove_firefox_profile_ini
webui-2-static.lib(civetweb.obj) : error LNK2001: unresolved external symbol __imp_fgets
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp_fputs referenced in function _webui_browser_create_new_profile
webui-2-static.lib(civetweb.obj) : error LNK2001: unresolved external symbol __imp_fputs
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp_fseek referenced in function _webui_http_send_file
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp_ftell referenced in function _webui_http_send_file
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp_realloc referenced in function _webui_system_win32_out
webui-2-static.lib(civetweb.obj) : error LNK2001: unresolved external symbol __imp_realloc
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp_srand referenced in function _webui_init
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp_rand referenced in function _webui_get_free_port
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp_strtod referenced in function webui_get_float_at
webui-2-static.lib(civetweb.obj) : error LNK2001: unresolved external symbol __imp_strtod
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp_strtol referenced in function webui_is_high_contrast
webui-2-static.lib(civetweb.obj) : error LNK2001: unresolved external symbol __imp_strtol
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp_strtoll referenced in function webui_get_int_at
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp_strtoul referenced in function _webui_receive
webui-2-static.lib(civetweb.obj) : error LNK2001: unresolved external symbol __imp_strtoul
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp__dupenv_s referenced in function _webui_get_temp_path
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp_strtok_s referenced in function _webui_ws_process
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp_strncpy referenced in function _webui_get_local_ip
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp__time64 referenced in function time
webui-2-static.lib(civetweb.obj) : error LNK2001: unresolved external symbol __imp__time64
webui-2-static.lib(webui.obj) : error LNK2019: unresolved external symbol __imp__getcwd referenced in function _webui_get_current_path
webui-2-static.lib(win32_wv2.obj) : error LNK2019: unresolved external symbol __imp__wputenv referenced in function _webui_win32_wv2_create_environment
webui-2-static.lib(win32_wv2.obj) : error LNK2019: unresolved external symbol __imp__CrtDbgReportW referenced in function "public: void * __cdecl Microsoft::WRL::Details::MakeAllocator::Allocate(void)" (?Allocate@?$MakeAllocator@VControllerCompletedHandler@@@details@WRL@Microsoft@@QEAAPEAXXZ)
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp__wfopen referenced in function mg_fopen
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_ferror referenced in function mg_handle_form_request
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_fgetc referenced in function mg_fgetc
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_fopen referenced in function mg_modify_passwords_file_ha1
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_fwrite referenced in function mg_modify_passwords_file_ha1
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp__pclose referenced in function do_ssi_exec
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp__popen referenced in function do_ssi_exec
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_remove referenced in function dav_move_file
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp___stdio_common_vsscanf referenced in function _vsscanf_l
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_atof referenced in function read_websocket
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp__strtoi64 referenced in function get_request
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp__strtoui64 referenced in function parse_auth_header
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp__stat64i32 referenced in function stat
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp__gmtime64 referenced in function gmtime
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp__localtime64 referenced in function localtime
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_strftime referenced in function gmt_time_string
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_isdigit referenced in function mg_url_decode
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_isxdigit referenced in function mg_read
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_isspace referenced in function parse_auth_header
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_isprint referenced in function get_http_header_len
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_isgraph referenced in function skip_to_end_of_word_and_terminate
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_iscntrl referenced in function mg_modify_passwords_file_ha1
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_toupper referenced in function dav_move_file
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_tolower referenced in function mg_url_decode
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_wcscat referenced in function mg_opendir
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_strcspn referenced in function mg_handle_form_request
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_strerror referenced in function check_authorization
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_strncat referenced in function handle_request
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp_strspn referenced in function skip_quoted
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp__rmdir referenced in function remove_directory
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp__access referenced in function put_file
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp__beginthread referenced in function mg_start_thread
webui-2-static.lib(civetweb.obj) : error LNK2019: unresolved external symbol __imp__beginthreadex referenced in function mg_start_thread_with_id
LIBCMT.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol WinMain referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@yahxz)
did anyone get a similar error and was able to resolve?
Beta Was this translation helpful? Give feedback.
All reactions