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
I am trying to build an application using your pre build libraries, but i am unable to get is succesfully build..
I am getting about 34 of these kinds of linker errors:
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol __imp_WSAGetLastError SRTTestApp libcrypto.lib(b_addr.obj) 1
For starters i created this very simple c++ console app:
Those references come from ws2_32.lib, the Windows socket library. To fix that, you must edit the properties of your project => Linker => Input => Additional dependencies => add ws2_32.lib (the result must display as ws2_32.lib;%(AdditionalDependencies)).
I should have added this dependency in the libsrt.props property file so you don't have to explicitly specify it. I will fix this.
Since almost all applications already use networking, they already link against ws2_32.lib and the missing reference went unnoticed.
Two additional remarks:
No need to install openssl, the required static libraries are already in the libsrt binary package.
The official libsrt project now includes the libsrt binary package for Windows. Their version 1.4.4 provides the binary package. However, this package will suffer from the same issue (it is my contribution) and you have to apply the same fix. I will apply the same fix in the libsrt official project but it will be available in the next version only.
Hello,
I am trying to build an application using your pre build libraries, but i am unable to get is succesfully build..
I am getting about 34 of these kinds of linker errors:
For starters i created this very simple c++ console app:
I cannot figure out which dependency i am missing, Installed both openssl en nsis. What is needed to make it compile and link succesfully.
Thanks, Rob
The text was updated successfully, but these errors were encountered: