question

Upvotes
Accepted
33 0 1 5

Linking errors after updating to 1.2.0

After inplace upgrading from 1.1.1 to 1.2.0 I've got a bunch of linking errors like these:

1> libema.lib(ItemCallbackClient.obj) : error LNK2001: unresolved external symbol rsslDecodeArray

What am I doing wrong? VS2017 if this matters (I don't think so).

elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-apic++
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
33 0 1 5

I figured out how to fix it: it looks like previously ETA libs were linked in the libema.lib, with 1.2.0 release they are separated out and placed under Elektron-SDK1.2.0.win.rrg\Cpp-C\Eta\Libs.

After specifying them in AdditionalDependencies explicitly (and copying over):

<AdditionalDependencies>libxml2.lib; librsslVA.lib; librssl.lib; libema.lib; ws2_32.lib; wininet.lib;%(AdditionalDependencies)</AdditionalDependencies>

Compilation went successful.

This is something needs to be brought to https://developers.thomsonreuters.com/elektron/elektron-sdk-cc/learning?content=6148&type=learning_material_item as it states that only libema.lib is needed (but I asked it in a separate thread).

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
17k 80 39 63

Hi @maratu,

The ESDK 1.2 release has made some changes to some of the libraries that may affect the linking of existing applications. Refer to the Migration Guide within the ESDK C/C++ documentation.

Also, try to use the new CMake build system to generate the project files for the examples as outlined within the Migration Guide. This will allow you to compare the linking/compiler includes and libs as a comparison to your project build files.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.