question

Upvotes
Accepted
11 4 5 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-sdkema-apirrtelektron-message-api
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.

1 Answer

· Write an 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 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.