question

Upvotes
Accepted
11 4 3 7

visual studio static link to libema.lib error:

1>libema.lib(ripcinetutils.obj) : error LNK2001: unresolved external symbol __imp_InternetOpenA

1>libema.lib(ripcinetutils.obj) : error LNK2001: unresolved external symbol __imp_InternetCloseHandle

1>libema.lib(ripcinetutils.obj) : error LNK2001: unresolved external symbol __imp_InternetConnectA

1>libema.lib(ripcinetutils.obj) : error LNK2001: unresolved external symbol __imp_InternetReadFile

1>libema.lib(ripcinetutils.obj) : error LNK2001: unresolved external symbol __imp_InternetWriteFile

1>libema.lib(ripcinetutils.obj) : error LNK2001: unresolved external symbol __imp_InternetQueryDataAvailable

1>libema.lib(ripcinetutils.obj) : error LNK2001: unresolved external symbol __imp_InternetSetOptionA

1>libema.lib(ripcinetutils.obj) : error LNK2001: unresolved external symbol __imp_InternetSetStatusCallback

1>libema.lib(ripcinetutils.obj) : error LNK2001: unresolved external symbol __imp_HttpOpenRequestA

1>libema.lib(ripcinetutils.obj) : error LNK2001: unresolved external symbol __imp_HttpSendRequestA

1>libema.lib(ripcinetutils.obj) : error LNK2001: unresolved external symbol __imp_HttpSendRequestExA

1>libema.lib(ripcinetutils.obj) : error LNK2001: unresolved external symbol __imp_HttpEndRequestA

1>libema.lib(ripcinetutils.obj) : error LNK2001: unresolved external symbol __imp_InternetAttemptConnect

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-api
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
7.6k 15 6 9

@James.Shen
Not sure have you set wininet.lib in Additional Dependencies?
Here is the lib required by EMA Consumer project.
msvcprtd.lib msvcrtd.lib libema.lib ws2_32.lib wininet.lib

I found the same error if remove wininet.lib from the setting.

icon clock
10 |1500

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

Click below to post an Idea Post Idea