Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to link VC runtime #2536

Closed
Kiryuumaru opened this issue Oct 23, 2023 · 2 comments
Closed

Unable to link VC runtime #2536

Kiryuumaru opened this issue Oct 23, 2023 · 2 comments
Labels

Comments

@Kiryuumaru
Copy link

Kiryuumaru commented Oct 23, 2023

This might be related to #22

I use vcpkg.json to install the lib. It builds ok if i compile it normally. But if i add this code to statically link the VC redist

cmake_policy(SET CMP0091 NEW)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")

It throws linker warning and errors:

C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'srand' defined in 'libucrtd.lib(rand.obj)' is imported by 'iothub_client.lib(iothub_client_core_ll.c.obj)' in function 'initialize_iothub_client'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'rand' defined in 'libucrtd.lib(rand.obj)' is imported by 'iothub_client.lib(iothub_client_diagnostic.c.obj)' in function 'generate_eight_random_characters'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'rand' defined in 'libucrtd.lib(rand.obj)' is imported by 'iothub_client_amqp_ws_transport.lib(iothub_client_retry_control.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'rand' defined in 'libucrtd.lib(rand.obj)' is imported by 'aziotsharedutil.lib(uniqueid_stub.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'rand' defined in 'libucrtd.lib(rand.obj)' is imported by 'aziotsharedutil.lib(gb_rand.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol '__stdio_common_vsprintf' defined in 'libucrtd.lib(output.obj)' is imported by 'prov_auth_client.lib(iothub_auth_client.c.obj)' in function 'sign_sas_data'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrtd.lib(output.obj)' is imported by 'uhttp.lib(uhttp.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrtd.lib(output.obj)' is imported by 'aziotsharedutil.lib(uuid.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol '__stdio_common_vsprintf' defined in 'libucrtd.lib(output.obj)' is imported by 'aziotsharedutil.lib(consolelogger.c.obj)' in function 'vsnprintf'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrtd.lib(output.obj)' is imported by 'aziotsharedutil.lib(uws_client.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrtd.lib(output.obj)' is imported by 'aziotsharedutil.lib(dns_resolver_sync.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrtd.lib(output.obj)' is imported by 'parson.lib(parson.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol '__stdio_common_vsprintf' defined in 'libucrtd.lib(output.obj)' is imported by 'uamqp.lib(amqpvalue_to_string.c.obj)' in function 'string_concat'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrtd.lib(output.obj)' is imported by 'aziotsharedutil.lib(strings.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrtd.lib(output.obj)' is imported by 'aziotsharedutil.lib(http_proxy_io.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol '__stdio_common_vsprintf' defined in 'libucrtd.lib(output.obj)' is imported by 'iothub_client.lib(iothub_client_diagnostic.c.obj)' in function '_vsnprintf_l'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrtd.lib(output.obj)' is imported by 'iothub_client.lib(blob.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrtd.lib(output.obj)' is imported by 'iothub_client_amqp_ws_transport.lib(iothubtransport_amqp_twin_messenger.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol '__stdio_common_vsprintf' defined in 'libucrtd.lib(output.obj)' is imported by 'iothub_client_amqp_ws_transport.lib(uamqp_messaging.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol '_errno' defined in 'libucrtd.lib(errno.obj)' is imported by 'aziotsharedutil.lib(uws_client.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol '_errno' defined in 'libucrtd.lib(errno.obj)' is imported by 'iothub_client_amqp_transport.lib(iothub_client_authorization.c.obj)' in function 'read_ca_certificate_from_file'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol '_errno' defined in 'libucrtd.lib(errno.obj)' is imported by 'parson.lib(parson.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol '_errno' defined in 'libucrtd.lib(errno.obj)' is imported by 'aziotsharedutil.lib(crt_abstractions.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol '_errno' defined in 'libucrtd.lib(errno.obj)' is imported by 'aziotsharedutil.lib(http_proxy_io.c.obj)' in function 'http_proxy_io_clone_option'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'fclose' defined in 'libucrtd.lib(fclose.obj)' is imported by 'iothub_client_amqp_transport.lib(iothub_client_authorization.c.obj)' in function 'read_ca_certificate_from_file'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'fclose' defined in 'libucrtd.lib(fclose.obj)' is imported by 'parson.lib(parson.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'fopen' defined in 'libucrtd.lib(fopen.obj)' is imported by 'iothub_client_amqp_transport.lib(iothub_client_authorization.c.obj)' in function 'read_ca_certificate_from_file'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'fopen' defined in 'libucrtd.lib(fopen.obj)' is imported by 'parson.lib(parson.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'fread' defined in 'libucrtd.lib(fread.obj)' is imported by 'iothub_client_amqp_transport.lib(iothub_client_authorization.c.obj)' in function 'read_ca_certificate_from_file'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'fread' defined in 'libucrtd.lib(fread.obj)' is imported by 'parson.lib(parson.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'fseek' defined in 'libucrtd.lib(fseek.obj)' is imported by 'iothub_client_amqp_transport.lib(iothub_client_authorization.c.obj)' in function 'read_ca_certificate_from_file'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'fseek' defined in 'libucrtd.lib(fseek.obj)' is imported by 'parson.lib(parson.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'ftell' defined in 'libucrtd.lib(ftell.obj)' is imported by 'iothub_client_amqp_transport.lib(iothub_client_authorization.c.obj)' in function 'read_ca_certificate_from_file'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'ftell' defined in 'libucrtd.lib(ftell.obj)' is imported by 'parson.lib(parson.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'strncmp' defined in 'libucrtd.lib(strncmp.obj)' is imported by 'hsm_security_client.lib(hsm_client_http_edge.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'strncmp' defined in 'libucrtd.lib(strncmp.obj)' is imported by 'iothub_client_amqp_ws_transport.lib(iothubtransport_amqp_telemetry_messenger.c.obj)' in function 'internal_on_event_send_complete_callback'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'strncmp' defined in 'libucrtd.lib(strncmp.obj)' is imported by 'parson.lib(parson.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'strncmp' defined in 'libucrtd.lib(strncmp.obj)' is imported by 'aziotsharedutil.lib(httpapiexsas.c.obj)' in function 'HTTPAPIEX_SAS_ExecuteRequest'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'strncmp' defined in 'libucrtd.lib(strncmp.obj)' is imported by 'aziotsharedutil.lib(x509_schannel.c.obj)' in function 'set_ecc_certificate_info'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'strncpy' defined in 'libucrtd.lib(strncpy.obj)' is imported by 'iothub_client_amqp_ws_transport.lib(uamqp_messaging.c.obj)' in function 'readUserIdFromuAQMPMessage'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'fputs' defined in 'libucrtd.lib(fputs.obj)' is imported by 'parson.lib(parson.c.obj)' in function 'json_serialize_to_file'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'strtod' defined in 'libucrtd.lib(strtod.obj)' is imported by 'parson.lib(parson.c.obj)' in function 'parse_number_value'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'isspace' defined in 'libucrtd.lib(_ctype.obj)' is imported by 'parson.lib(parson.c.obj)' in function 'parse_object_value'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol '_dclass' defined in 'libucrtd.lib(nan.obj)' is imported by 'parson.lib(parson.c.obj)' in function 'json_value_init_number'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'aziotsharedutil.lib(http_proxy_io.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'aziotsharedutil.lib(tlsio_schannel.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'aziotsharedutil.lib(socketio_win32.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'aziotsharedutil.lib(dns_resolver_sync.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'aziotsharedutil.lib(string_tokenizer.c.obj)' in function 'STRING_TOKENIZER_create_from_char'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'aziotsharedutil.lib(constbuffer.c.obj)' in function 'CONSTBUFFER_CreateWithMoveMemory'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'aziotsharedutil.lib(httpapiex.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'aziotsharedutil.lib(wsio.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'uamqp.lib(sasl_frame_codec.c.obj)' in function 'sasl_frame_codec_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'aziotsharedutil.lib(gballoc.c.obj)' in function 'gballoc_malloc'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'aziotsharedutil.lib(buffer.c.obj)' in function 'BUFFER_new'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'aziotsharedutil.lib(map.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'uamqp.lib(saslclientio.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'uamqp.lib(frame_codec.c.obj)' in function 'frame_codec_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'uamqp.lib(amqp_frame_codec.c.obj)' in function 'amqp_frame_codec_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'uamqp.lib(amqp_management.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'uamqp.lib(message_sender.c.obj)' in function 'messagesender_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'uamqp.lib(connection.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'uamqp.lib(session.c.obj)' in function 'session_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'uamqp.lib(cbs.c.obj)' in function 'cbs_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'uamqp.lib(amqpvalue.c.obj)' in function 'internal_decoder_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'uamqp.lib(link.c.obj)' in function 'link_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'uamqp.lib(message.c.obj)' in function 'message_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'calloc' defined in 'libucrtd.lib(calloc.obj)' is imported by 'uamqp.lib(message_receiver.c.obj)' in function 'messagereceiver_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uhttp.lib(uhttp.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'prov_auth_client.lib(iothub_security_factory.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'prov_auth_client.lib(iothub_auth_client.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'prov_auth_client.lib(prov_security_factory.c.obj)' in function 'prov_dev_security_init'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'hsm_security_client.lib(hsm_client_http_edge.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(uws_client.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(socketio_win32.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(x509_schannel.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(dns_resolver_sync.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(consolelogger.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(lock_win32.c.obj)' in function 'Lock_Init'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(httpapi_winhttp.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(vector.c.obj)' in function 'VECTOR_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(http_proxy_io.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(optionhandler.c.obj)' in function 'CreateInternal'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(uuid.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(tlsio_schannel.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(azure_base64.c.obj)' in function 'Base64_Encode_Internal'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(sastoken.c.obj)' in function 'SASToken_Validate'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(xio.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(wsio.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(httpheaders.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(httpapiex.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(httpapiexsas.c.obj)' in function 'construct_httpex_sas'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(urlencode.c.obj)' in function 'URL_Decode'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(string_tokenizer.c.obj)' in function 'STRING_TOKENIZER_create_from_char'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(tickcounter_win32.c.obj)' in function 'tickcounter_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(constbuffer.c.obj)' in function 'CONSTBUFFER_DecRef_internal'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(singlylinkedlist.c.obj)' in function 'singlylinkedlist_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(buffer.c.obj)' in function 'BUFFER_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(strings.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(crt_abstractions.c.obj)' in function 'mallocAndStrcpy_s'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(map.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(amqp_management.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(sasl_frame_codec.c.obj)' in function 'sasl_frame_codec_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(platform_win32.c.obj)' in function 'platform_get_platform_info'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'aziotsharedutil.lib(gballoc.c.obj)' in function 'gballoc_malloc'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(async_operation.c.obj)' in function 'async_operation_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(amqpvalue_to_string.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(frame_codec.c.obj)' in function 'frame_codec_destroy'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(amqp_frame_codec.c.obj)' in function 'amqp_frame_codec_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(cbs.c.obj)' in function 'cbs_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(sasl_mechanism.c.obj)' in function 'saslmechanism_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(saslclientio.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(sasl_mssbcbs.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(message_receiver.c.obj)' in function 'messagereceiver_destroy'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(message_sender.c.obj)' in function 'messagesender_destroy'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(connection.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(session.c.obj)' in function 'session_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(amqpvalue.c.obj)' in function 'amqpvalue_decoder_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(link.c.obj)' in function 'link_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(amqp_definitions.c.obj)' in function 'error_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'free' defined in 'libucrtd.lib(free.obj)' is imported by 'uamqp.lib(message.c.obj)' in function 'message_destroy'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'prov_auth_client.lib(iothub_auth_client.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'hsm_security_client.lib(hsm_client_http_edge.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'uhttp.lib(uhttp.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(vector.c.obj)' in function 'VECTOR_push_back'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(uws_client.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(socketio_win32.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(x509_schannel.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(tlsio_schannel.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(consolelogger.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(lock_win32.c.obj)' in function 'Lock_Init'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(httpapi_winhttp.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(wsio.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(http_proxy_io.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(optionhandler.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(uuid.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(urlencode.c.obj)' in function 'URL_Decode'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(azure_base64.c.obj)' in function 'Azure_Base64_Decode'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(sastoken.c.obj)' in function 'SASToken_Validate'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(xio.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(tickcounter_win32.c.obj)' in function 'tickcounter_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(singlylinkedlist.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(httpheaders.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(httpapiexsas.c.obj)' in function 'construct_httpex_sas'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(buffer.c.obj)' in function 'BUFFER_create_with_size'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(strings.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(crt_abstractions.c.obj)' in function 'strtoull_s'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(map.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'uamqp.lib(amqp_management.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'uamqp.lib(sasl_frame_codec.c.obj)' in function 'sasl_frame_codec_encode_frame'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(platform_win32.c.obj)' in function 'platform_get_platform_info'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'aziotsharedutil.lib(gballoc.c.obj)' in function 'gballoc_malloc'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'uamqp.lib(sasl_mssbcbs.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'uamqp.lib(async_operation.c.obj)' in function 'async_operation_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'uamqp.lib(frame_codec.c.obj)' in function 'frame_codec_receive_bytes'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'uamqp.lib(amqp_frame_codec.c.obj)' in function 'amqp_frame_codec_encode_frame'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'uamqp.lib(message_sender.c.obj)' in function 'send_one_message'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'uamqp.lib(connection.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'uamqp.lib(session.c.obj)' in function 'session_create_link_endpoint'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'uamqp.lib(sasl_mechanism.c.obj)' in function 'saslmechanism_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'uamqp.lib(amqpvalue.c.obj)' in function 'amqpvalue_create_binary'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'uamqp.lib(link.c.obj)' in function 'link_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'uamqp.lib(amqp_definitions.c.obj)' in function 'open_get_outgoing_locales'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'uamqp.lib(message.c.obj)' in function 'message_clone'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'realloc' defined in 'libucrtd.lib(realloc.obj)' is imported by 'aziotsharedutil.lib(tlsio_schannel.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'realloc' defined in 'libucrtd.lib(realloc.obj)' is imported by 'aziotsharedutil.lib(vector.c.obj)' in function 'VECTOR_push_back'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'realloc' defined in 'libucrtd.lib(realloc.obj)' is imported by 'aziotsharedutil.lib(uws_client.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'realloc' defined in 'libucrtd.lib(realloc.obj)' is imported by 'aziotsharedutil.lib(buffer.c.obj)' in function 'BUFFER_build'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'realloc' defined in 'libucrtd.lib(realloc.obj)' is imported by 'aziotsharedutil.lib(strings.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'realloc' defined in 'libucrtd.lib(realloc.obj)' is imported by 'aziotsharedutil.lib(map.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'realloc' defined in 'libucrtd.lib(realloc.obj)' is imported by 'aziotsharedutil.lib(http_proxy_io.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'realloc' defined in 'libucrtd.lib(realloc.obj)' is imported by 'uamqp.lib(connection.c.obj)' in function 'connection_create2'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'realloc' defined in 'libucrtd.lib(realloc.obj)' is imported by 'uamqp.lib(session.c.obj)' in function 'session_create_link_endpoint'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'realloc' defined in 'libucrtd.lib(realloc.obj)' is imported by 'uamqp.lib(amqpvalue_to_string.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'realloc' defined in 'libucrtd.lib(realloc.obj)' is imported by 'aziotsharedutil.lib(gballoc.c.obj)' in function 'gballoc_realloc'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'realloc' defined in 'libucrtd.lib(realloc.obj)' is imported by 'uamqp.lib(amqpvalue.c.obj)' in function 'amqpvalue_set_list_item_count'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'realloc' defined in 'libucrtd.lib(realloc.obj)' is imported by 'uamqp.lib(link.c.obj)' in function 'link_frame_received'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'realloc' defined in 'libucrtd.lib(realloc.obj)' is imported by 'uamqp.lib(message.c.obj)' in function 'message_add_body_amqp_data'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'realloc' defined in 'libucrtd.lib(realloc.obj)' is imported by 'uamqp.lib(message_sender.c.obj)' in function 'messagesender_send_async'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'strtol' defined in 'libucrtd.lib(strtox.obj)' is imported by 'aziotsharedutil.lib(crt_abstractions.c.obj)' in function 'splitFloatString'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'strtol' defined in 'libucrtd.lib(strtox.obj)' is imported by 'aziotsharedutil.lib(http_proxy_io.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4286: symbol 'strtol' defined in 'libucrtd.lib(strtox.obj)' is imported by 'aziotsharedutil.lib(uws_client.c.obj)'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'strcpy_s' defined in 'libucrtd.lib(strcpy_s.obj)' is imported by 'aziotsharedutil.lib(crt_abstractions.c.obj)' in function 'mallocAndStrcpy_s'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol '_gmtime64' defined in 'libucrtd.lib(gmtime.obj)' is imported by 'aziotsharedutil.lib(agenttime.c.obj)' in function 'gmtime'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol '_mktime64' defined in 'libucrtd.lib(mktime.obj)' is imported by 'aziotsharedutil.lib(agenttime.c.obj)' in function 'mktime'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol '_time64' defined in 'libucrtd.lib(time.obj)' is imported by 'aziotsharedutil.lib(agenttime.c.obj)' in function 'time'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol '_time64' defined in 'libucrtd.lib(time.obj)' is imported by 'aziotsharedutil.lib(tickcounter_win32.c.obj)' in function 'tickcounter_create'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'getenv' defined in 'libucrtd.lib(getenv.obj)' is imported by 'aziotsharedutil.lib(envvariable.c.obj)' in function 'environment_get_variable'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol '__acrt_iob_func' defined in 'libucrtd.lib(_file.obj)' is imported by 'aziotsharedutil.lib(consolelogger.c.obj)' in function 'printf'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol '__stdio_common_vfprintf' defined in 'libucrtd.lib(output.obj)' is imported by 'aziotsharedutil.lib(consolelogger.c.obj)' in function '_vfprintf_l'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'mbstowcs_s' defined in 'libucrtd.lib(mbstowcs.obj)' is imported by 'aziotsharedutil.lib(httpapi_winhttp.c.obj)' in function 'SetProxyIfNecessary'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol '__stdio_common_vsprintf_s' defined in 'libucrtd.lib(output.obj)' is imported by 'aziotsharedutil.lib(httpapi_winhttp.c.obj)' in function '_vsprintf_s_l'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'atoi' defined in 'libucrtd.lib(atox.obj)' is imported by 'hsm_security_client.lib(hsm_client_http_edge.c.obj)' in function 'read_and_parse_edge_uri'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'atol' defined in 'libucrtd.lib(atox.obj)' is imported by 'uhttp.lib(uhttp.c.obj)' in function 'process_status_code_line'
C:\Users\Administrator\test-app\out\build\LINK : warning LNK4217: symbol 'tolower' defined in 'libucrtd.lib(tolower_toupper.obj)' is imported by 'uhttp.lib(uhttp.c.obj)' in function 'process_header_line'
C:\Users\Administrator\test-app\out\build\iothub_client.lib(iothub_client_diagnostic.c.obj) : error LNK2019: unresolved external symbol __imp_floor referenced in function should_add_diagnostic_info
C:\Users\Administrator\test-app\out\build\iothub_client.lib(iothub_client_ll_uploadtoblob.c.obj) : error LNK2019: unresolved external symbol __imp__difftime64 referenced in function difftime
C:\Users\Administrator\test-app\out\build\aziotsharedutil.lib(agenttime.c.obj) : error LNK2001: unresolved external symbol __imp__difftime64
C:\Users\Administrator\test-app\out\build\aziotsharedutil.lib(tickcounter_win32.c.obj) : error LNK2001: unresolved external symbol __imp__difftime64
C:\Users\Administrator\test-app\out\build\hsm_security_client.lib(hsm_client_http_edge.c.obj) : error LNK2001: unresolved external symbol __imp__difftime64
C:\Users\Administrator\test-app\out\build\iothub_client_amqp_transport.lib(iothub_client_authorization.c.obj) : error LNK2019: unresolved external symbol __imp_ferror referenced in function read_ca_certificate_from_file
C:\Users\Administrator\test-app\out\build\parson.lib(parson.c.obj) : error LNK2001: unresolved external symbol __imp_ferror
C:\Users\Administrator\test-app\out\build\iothub_client_amqp_transport.lib(iothub_client_authorization.c.obj) : error LNK2019: unresolved external symbol __imp_rewind referenced in function read_ca_certificate_from_file
C:\Users\Administrator\test-app\out\build\parson.lib(parson.c.obj) : error LNK2001: unresolved external symbol __imp_rewind
C:\Users\Administrator\test-app\out\build\aziotsharedutil.lib(agenttime.c.obj) : error LNK2019: unresolved external symbol __imp__ctime64 referenced in function ctime
  
C:\Users\Administrator\test-app\out\build\aziotsharedutil.lib(httpapi_winhttp.c.obj) : error LNK2019: unresolved external symbol __imp_wcstok_s referenced in function ReceiveResponseHeaders
  
C:\Users\Administrator\test-app\out\build\vianad\Debug\vianad.exe : fatal error LNK1120: 6 unresolved externals
  
  ninja: build stopped: subcommand failed.

Rebuild All failed.
@ericwolz
Copy link
Contributor

ericwolz commented Dec 8, 2023

link errors LNK4286 is from build the lib with using a dynamic linked runtime (runtime functions marked with __declspec).

If you build with .\vcpkg.exe install azure-iot-sdk-c:x64-windows defaults to a library that usings the dynamic CRT runtime.

Try building your VC package with .\vcpkg.exe install azure-iot-sdk-c:x64-windows-static

else you will need to create a custom triplets with the cmake set(VCPKG_CRT_LINKAGE static) to force using the static C runtime

https://learn.microsoft.com/en-us/vcpkg/users/examples/overlay-triplets-linux-dynamic

@ewertons
Copy link
Contributor

We will close this issue based on the response below. If you would like to follow up, please reopen it or file a new one.
Thanks,
Azure IoT SDK Team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants