You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling a DPS application linking with -lprov_device_client, I still need to link against static library corresponding to the correct protocol I am using (e.g: AMQP_WS -lprov_amqp_ws_transport)
I thought that linking was done the same way as iothub_client library, all static library are included in the dynamic library. Instead we should use the use_amqp or use_http options in cmake to select the needed transport
The error is : undefined reference to "Prov_Device_AMQP_WS_Protocol"
Code sample exhibiting the issue:
N/A
Console log of the issue:
undefined reference to 'Prov_Device_AMQP_WS_Protocol' collect2: error: ld returned 1 exit status
The text was updated successfully, but these errors were encountered:
Currently for DPS we try to minimize dependencies that are automatically included and require the user to add the libraries. I don't believe that add the protocol library is not an unreasonable request, but I shall talk to the project managers to see if this should remain this way.
OS and version used:
Ubuntu
SDK version used:
master
Description of the issue:
When compiling a DPS application linking with
-lprov_device_client
, I still need to link against static library corresponding to the correct protocol I am using (e.g: AMQP_WS-lprov_amqp_ws_transport
)I thought that linking was done the same way as iothub_client library, all static library are included in the dynamic library. Instead we should use the
use_amqp
oruse_http
options in cmake to select the needed transportThe error is :
undefined reference to "Prov_Device_AMQP_WS_Protocol"
Code sample exhibiting the issue:
N/A
Console log of the issue:
undefined reference to 'Prov_Device_AMQP_WS_Protocol'
collect2: error: ld returned 1 exit status
The text was updated successfully, but these errors were encountered: