I have been trying to upgrade my POCO libraries to 1.9.0 which required me to upgrade SSL, which has changed some library names. I am using SSL (OpenSSL-Win64-110g) from Shining Light
I was able to recompile the new poco-1.9.0 libraries , including recompiling the Crypto and Net_SSL_Open_SSL in vs2015 pointing to the new SSL (110g) version.
In my project I reference the newly compiled POCO libs and referenced the new SSL lib paths.
The new SSL seems to have replaced ssleay32MT.lib and libeay32MT.lib with libcrypto64MT.dll and libssl64MT.dll, respectively, so I changed those references in my project as well.
When I compile I get 36 LNK2001 "Unresolved External Symbol" Errors associated with Net, NetSSL, and Crypto libraries. (listed below).
I am wondering it either the SSL 110g lib is too new for POCO 1.9, or needs to be compiled with VS2015. Not Sure though. Any ideas on things to check?
Error list:
Severity Code Description Project File Line Source Error LNK2001 unresolved external symbol GetAdaptersInfo Server\trunk\Server\ide\windows\PocoFoundationmt.lib(Environment.obj)
Error LNK2001 unresolved external symbol __imp_WSAStartup Server\trunk\Server\ide\windows\PocoNetmt.lib(Net.obj)
Error LNK2001 unresolved external symbol __imp_WSAStartup Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock.obj)
Error LNK2001 unresolved external symbol __imp_WSACleanup Server\trunk\Server\ide\windows\PocoNetmt.lib(Net.obj)
Error LNK2001 unresolved external symbol __imp_WSACleanup Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock.obj)
Error LNK2001 unresolved external symbol __imp_htons Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketAddress.obj)
Error LNK2001 unresolved external symbol __imp_ntohs Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketAddress.obj)
Error LNK2001 unresolved external symbol __imp_ntohs Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketAddressImpl.obj)
Error LNK2001 unresolved external symbol __imp_ntohs Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock.obj)
Error LNK2001 unresolved external symbol __imp_ntohs Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_addr.obj)
Error LNK2001 unresolved external symbol __imp_getservbyname Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketAddress.obj)
Error LNK2001 unresolved external symbol __imp_accept Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_accept Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_bind Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_bind Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_closesocket Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_closesocket Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_connect Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_connect Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_ioctlsocket Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_ioctlsocket Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock.obj)
Error LNK2001 unresolved external symbol __imp_getpeername Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_getsockname Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_getsockname Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock.obj)
Error LNK2001 unresolved external symbol __imp_getsockopt Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_getsockopt Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock.obj)
Error LNK2001 unresolved external symbol __imp_getsockopt Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_listen Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_listen Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_recv Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_recv Server\trunk\Server\ide\windows\libcrypto64MT.lib(bss_sock.obj)
Error LNK2001 unresolved external symbol __imp_recvfrom Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_select Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_select Server\trunk\Server\ide\windows\PocoNetmt.lib(Socket.obj)
Error LNK2001 unresolved external symbol __imp_send Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_send Server\trunk\Server\ide\windows\libcrypto64MT.lib(bss_sock.obj)
Error LNK2001 unresolved external symbol __imp_sendto Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_setsockopt Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_setsockopt Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_shutdown Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_socket Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_socket Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_WSAGetLastError Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_WSAGetLastError Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_WSAGetLastError Server\trunk\Server\ide\windows\PocoNetmt.lib(Socket.obj)
Error LNK2001 unresolved external symbol __imp_WSAGetLastError Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock.obj)
Error LNK2001 unresolved external symbol __imp_WSAGetLastError Server\trunk\Server\ide\windows\libcrypto64MT.lib(bss_sock.obj)
Error LNK2001 unresolved external symbol __imp_gethostname Server\trunk\Server\ide\windows\PocoNetmt.lib(DNS.obj)
Error LNK2001 unresolved external symbol __imp_getaddrinfo Server\trunk\Server\ide\windows\PocoNetmt.lib(DNS.obj)
Error LNK2001 unresolved external symbol __imp_getaddrinfo Server\trunk\Server\ide\windows\PocoNetmt.lib(IPAddressImpl.obj)
Error LNK2001 unresolved external symbol __imp_getaddrinfo Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_addr.obj)
Error LNK2001 unresolved external symbol __imp_freeaddrinfo Server\trunk\Server\ide\windows\PocoNetmt.lib(DNS.obj)
Error LNK2001 unresolved external symbol __imp_freeaddrinfo Server\trunk\Server\ide\windows\PocoNetmt.lib(IPAddressImpl.obj)
Error LNK2001 unresolved external symbol __imp_freeaddrinfo Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_addr.obj)
Error LNK2001 unresolved external symbol __imp_getnameinfo Server\trunk\Server\ide\windows\PocoNetmt.lib(DNS.obj)
Error LNK2001 unresolved external symbol __imp_getnameinfo Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_addr.obj)
Error LNK2001 unresolved external symbol __WSAFDIsSet Server\trunk\Server\ide\windows\PocoNetmt.lib(Socket.obj)
Error LNK2001 unresolved external symbol __imp_inet_addr Server\trunk\Server\ide\windows\PocoNetmt.lib(IPAddressImpl.obj)
Error LNK2001 unresolved external symbol __imp_ntohl Server\trunk\Server\ide\windows\PocoNetmt.lib(IPAddressImpl.obj)
Error LNK2001 unresolved external symbol _vsnprintf Server\trunk\Server\ide\windows\libcrypto64MT.lib(cryptlib.obj)
Error LNK2001 unresolved external symbol _vsnwprintf Server\trunk\Server\ide\windows\libcrypto64MT.lib(cryptlib.obj)
Error LNK2001 unresolved external symbol __iob_func Server\trunk\Server\ide\windows\libcrypto64MT.lib(eng_openssl.obj)
Error LNK2001 unresolved external symbol __iob_func Server\trunk\Server\ide\windows\libcrypto64MT.lib(e_capi.obj)
Error LNK2001 unresolved external symbol __iob_func Server\trunk\Server\ide\windows\libcrypto64MT.lib(pem_lib.obj)
Error LNK2001 unresolved external symbol __iob_func Server\trunk\Server\ide\windows\libcrypto64MT.lib(ui_openssl.obj)
Error LNK2001 unresolved external symbol __imp_gethostbyname Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock.obj)
Error LNK2001 unresolved external symbol __imp_WSASetLastError Server\trunk\Server\ide\windows\libcrypto64MT.lib(bss_sock.obj)
Error LNK1120 36 unresolved externals Server\trunk\Server\ide\windows\x64\Release\iqagent.exe
OK so I figured it out. the Crypto errors were because the settings I made in the POCO project linker didn't save; I noticed when running the compiler that the output of the linker didn't include the new SSL libraries (libcrypto.lib, libssl.lib) etc. I also was linking to static libraries in Crypto and Net_SSL.
On the PocoNET errors, I had to include ws2_32.lib and iphlpapi.lib in my linker add'l lib dependancies. I haven't had to do this in the past.
I hope this helps someone in a similar circumstance.
Related
I'm compiling FFmpeg statically against VS2013 update 5 using --toolchain=msvc
If I link against avformat.lib i get a bunch of LNK2019 errors.
I can link make calls against the other libraries(avcodec, swscale, avutil).
Looking at the errors, it seems to be against all the networking .o's (tls_schannel.o, networking.o, tcp.o, etc....)
Here is the output
error LNK2019: unresolved external symbol _QueryContextAttributesA#12 referenced in function _tls_write avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol _InitializeSecurityContextA#48 referenced in function _tls_client_handshake avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol _FreeContextBuffer#4 referenced in function _tls_client_handshake avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol _EncryptMessage#16 referenced in function _tls_write avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol _DecryptMessage#16 referenced in function _tls_read avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol _AcquireCredentialsHandleA#36 referenced in function _tls_open avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol __imp__WSAStartup#8 referenced in function _ff_network_init avformat.lib(network.o)
error LNK2019: unresolved external symbol __imp__WSAGetLastError#0 referenced in function _ff_neterrno avformat.lib(network.o)
error LNK2019: unresolved external symbol __imp__WSACleanup#0 referenced in function _ff_network_close avformat.lib(network.o)
error LNK2019: unresolved external symbol __imp__socket#12 referenced in function _ff_socket avformat.lib(network.o)
error LNK2019: unresolved external symbol __imp__shutdown#8 referenced in function _tcp_shutdown avformat.lib(tcp.o)
error LNK2019: unresolved external symbol __imp__setsockopt#20 referenced in function _tcp_open avformat.lib(tcp.o)
error LNK2019: unresolved external symbol __imp__sendto#24 referenced in function _rtp_write avformat.lib(rtpproto.o)
error LNK2019: unresolved external symbol __imp__send#16 referenced in function _tcp_write avformat.lib(tcp.o)
error LNK2019: unresolved external symbol __imp__select#20 referenced in function _ff_poll avformat.lib(os_support.o)
error LNK2019: unresolved external symbol __imp__recvfrom#24 referenced in function _rtp_read avformat.lib(rtpproto.o)
error LNK2019: unresolved external symbol __imp__recv#16 referenced in function _tcp_read avformat.lib(tcp.o)
error LNK2019: unresolved external symbol __imp__ntohs#4 referenced in function _get_port avformat.lib(rtpproto.o)
error LNK2019: unresolved external symbol __imp__ntohl#4 referenced in function _ff_is_multicast_address avformat.lib(network.o)
error LNK2019: unresolved external symbol __imp__listen#8 referenced in function _ff_listen avformat.lib(network.o)
error LNK2019: unresolved external symbol __imp__ioctlsocket#12 referenced in function _ff_socket_nonblock avformat.lib(os_support.o)
error LNK2019: unresolved external symbol __imp__htons#4 referenced in function _set_port avformat.lib(rtpproto.o)
error LNK2019: unresolved external symbol __imp__htonl#4 referenced in function _ff_inet_aton avformat.lib(os_support.o)
error LNK2019: unresolved external symbol __imp__getsockopt#20 referenced in function _udp_open avformat.lib(udp.o)
error LNK2019: unresolved external symbol __imp__getsockname#12 referenced in function _rtp_read_header avformat.lib(rtsp.o)
error LNK2019: unresolved external symbol __imp__getpeername#12 referenced in function _ff_rtsp_connect avformat.lib(rtsp.o)
error LNK2019: unresolved external symbol __imp__getnameinfo#28 referenced in function _sdp_read_header avformat.lib(rtsp.o)
error LNK2019: unresolved external symbol __imp__gethostname#8 referenced in function _ff_rtp_parse_open avformat.lib(rtpdec.o)
error LNK2019: unresolved external symbol __imp__FreeCredentialsHandle#4 referenced in function _tls_close avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol __imp__DeleteSecurityContext#4 referenced in function _tls_close avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol __imp__connect#12 referenced in function _udp_open avformat.lib(udp.o)
error LNK2019: unresolved external symbol __imp__closesocket#4 referenced in function _tcp_close avformat.lib(tcp.o)
error LNK2019: unresolved external symbol __imp__bind#12 referenced in function _udp_open avformat.lib(udp.o)
error LNK2019: unresolved external symbol __imp__ApplyControlToken#8 referenced in function _tls_shutdown_client avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol __imp__accept#12 referenced in function _ff_accept avformat.lib(network.o)
error LNK2019: unresolved external symbol ___WSAFDIsSet#8 referenced in function _ff_poll avformat.lib(os_support.o)
error LNK2001: unresolved external symbol __imp__setsockopt#20 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__setsockopt#20 avformat.lib(network.o)
error LNK2001: unresolved external symbol __imp__sendto#24 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__send#16 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__recv#16 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__getsockopt#20 avformat.lib(network.o)
error LNK2001: unresolved external symbol __imp__getsockname#12 avformat.lib(sapenc.o)
error LNK2001: unresolved external symbol __imp__getsockname#12 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__getnameinfo#28 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__getnameinfo#28 avformat.lib(sdp.o)
error LNK2001: unresolved external symbol __imp__getaddrinfo#16 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__getaddrinfo#16 avformat.lib(url.o)
error LNK2001: unresolved external symbol __imp__getaddrinfo#16 avformat.lib(sdp.o)
error LNK2001: unresolved external symbol __imp__getaddrinfo#16 avformat.lib(tls.o)
error LNK2001: unresolved external symbol __imp__getaddrinfo#16 avformat.lib(rtsp.o)
error LNK2001: unresolved external symbol __imp__getaddrinfo#16 avformat.lib(sapenc.o)
error LNK2001: unresolved external symbol __imp__getaddrinfo#16 avformat.lib(rtpproto.o)
error LNK2001: unresolved external symbol __imp__getaddrinfo#16 avformat.lib(tcp.o)
error LNK2001: unresolved external symbol __imp__freeaddrinfo#4 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__freeaddrinfo#4 avformat.lib(url.o)
error LNK2001: unresolved external symbol __imp__freeaddrinfo#4 avformat.lib(sdp.o)
error LNK2001: unresolved external symbol __imp__freeaddrinfo#4 avformat.lib(tls.o)
error LNK2001: unresolved external symbol __imp__freeaddrinfo#4 avformat.lib(rtsp.o)
error LNK2001: unresolved external symbol __imp__freeaddrinfo#4 avformat.lib(sapenc.o)
error LNK2001: unresolved external symbol __imp__freeaddrinfo#4 avformat.lib(rtpproto.o)
error LNK2001: unresolved external symbol __imp__freeaddrinfo#4 avformat.lib(tcp.o)
error LNK2001: unresolved external symbol __imp__connect#12 avformat.lib(network.o)
error LNK2001: unresolved external symbol __imp__closesocket#4 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__closesocket#4 avformat.lib(network.o)
error LNK2001: unresolved external symbol __imp__bind#12 avformat.lib(network.o)
It's caused by missing Windows socket library when linking program.
If you don't want any network funcionality from ffmpeg just add this switch to configure command when building ffmpeg:
--disable-network
or if you want network add Ws2_32.lib to Additional dependecies in linker options in you program.
Having problems with Opus codec on VS 2010 even after linking .lib(libopusfile-0.lib and opus.lib) file ?
Getting same errors:
1>main.obj : error LNK2019: unresolved external symbol _opus_decoder_destroy referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _opus_encoder_destroy referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _opus_decode referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _opus_encode referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _opus_decoder_create referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _opus_encoder_ctl referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _opus_strerror referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _opus_encoder_create referenced in function _main
1>C:\Users\korisnik\Desktop\Projekti\opus\Opus\Debug\Opus.exe : fatal error LNK1120: 8 unresolved externals
I am new to this and stuck with this problem for a while now. Any help would be much appreciated.
OPUS has multiple libs so make sure you link with all of them.
No idea what SDL2.lib is trying to find, but it seems to have built incorrectly or something. Even using the files provided on the website for SDL 2.0.3, i can't get my program to link because of the missing symbols.
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_GetBasePath_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_GetPrefPath_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_NumHaptics_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticName_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticOpen_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticOpened_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticIndex_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_MouseIsHaptic_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticOpenFromMouse_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_JoystickIsHaptic_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticOpenFromJoystick_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticClose_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticNumEffects_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticNumEffectsPlaying_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticQuery_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticNumAxes_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticEffectSupported_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticNewEffect_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticUpdateEffect_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticRunEffect_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticStopEffect_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticDestroyEffect_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticGetEffectStatus_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticSetGain_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticSetAutocenter_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticPause_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticUnpause_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticStopAll_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticRumbleSupported_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticRumbleInit_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticRumblePlay_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_HapticRumbleStop_REAL
1>SDL2.lib(SDL_dynapi.obj) : error LNK2001: unresolved external symbol _SDL_GetPowerInfo_REAL
Anyone have any idea why these functions can't be found, or why they even have _REAL at the end of them?
I am trying to compile dbd:sybase module(DBD-Sybase-1.07) in 64 bit perl(5.12.3). However, I am getting following error messages on doing so on doing nmake. Please let me know what am I missing.
Creating library blib\arch\auto\DBD\Sybase\Sybase.lib and object blib\arch\au
to\DBD\Sybase\Sybase.exp
dbdimp.obj : error LNK2001: unresolved external symbol blk_rowxfer
dbdimp.obj : error LNK2001: unresolved external symbol ct_send_data
dbdimp.obj : error LNK2001: unresolved external symbol blk_init
dbdimp.obj : error LNK2001: unresolved external symbol ct_cancel
dbdimp.obj : error LNK2001: unresolved external symbol cs_diag
dbdimp.obj : error LNK2001: unresolved external symbol ct_results
dbdimp.obj : error LNK2001: unresolved external symbol cs_ctx_alloc
dbdimp.obj : error LNK2001: unresolved external symbol ct_connect
dbdimp.obj : error LNK2001: unresolved external symbol cs_dt_crack
dbdimp.obj : error LNK2001: unresolved external symbol ct_bind
dbdimp.obj : error LNK2001: unresolved external symbol ct_options
dbdimp.obj : error LNK2001: unresolved external symbol ct_callback
dbdimp.obj : error LNK2001: unresolved external symbol ct_cmd_drop
dbdimp.obj : error LNK2001: unresolved external symbol ct_close
dbdimp.obj : error LNK2001: unresolved external symbol blk_bind
dbdimp.obj : error LNK2001: unresolved external symbol blk_drop
dbdimp.obj : error LNK2001: unresolved external symbol cs_loc_drop
dbdimp.obj : error LNK2001: unresolved external symbol cs_locale
dbdimp.obj : error LNK2001: unresolved external symbol ct_param
dbdimp.obj : error LNK2001: unresolved external symbol blk_props
dbdimp.obj : error LNK2001: unresolved external symbol blk_done
dbdimp.obj : error LNK2001: unresolved external symbol cs_ctx_drop
dbdimp.obj : error LNK2001: unresolved external symbol ct_send
dbdimp.obj : error LNK2001: unresolved external symbol ct_con_drop
dbdimp.obj : error LNK2001: unresolved external symbol ct_get_data
dbdimp.obj : error LNK2001: unresolved external symbol ct_con_props
dbdimp.obj : error LNK2001: unresolved external symbol cs_config
dbdimp.obj : error LNK2001: unresolved external symbol ct_config
dbdimp.obj : error LNK2001: unresolved external symbol ct_res_info
dbdimp.obj : error LNK2001: unresolved external symbol ct_compute_info
dbdimp.obj : error LNK2001: unresolved external symbol ct_dynamic
dbdimp.obj : error LNK2001: unresolved external symbol ct_init
dbdimp.obj : error LNK2001: unresolved external symbol blk_describe
dbdimp.obj : error LNK2001: unresolved external symbol ct_cmd_alloc
blib\arch\auto\DBD\Sybase\Sybase.dll : fatal error LNK1120: 44 unresolved extern
als
NMAKE : fatal error U1077: 'E:\BuildTools\i\win32\Microsoft\VisualStudio\2010\VC
\BIN\amd64\link.EXE' : return code '0x460'
Stop.
You will need the Sybase client libraries, along with their associated header files.
I set up VS 2008 SP1 on Windows 7 (64-bit) and tried to build the psutil, got the following error. VS 2008 is properly setup and with SP1 successfully patched.
I ran the "python setup.py build" command per the INSTALL file in the package.
c:\src\psutil>python setup.py build --verbose
running build
running build_py
running build_ext
building '_psutil_mswindows' extension
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo
/INCREMENTAL:NO /LIBPATH:C:\python_26_amd64\files\libs /LIBPATH:C:\python_26_amd
64\files\PCbuild\amd64 psapi.lib kernel32.lib advapi32.lib shell32.lib netapi32.
lib iphlpapi.lib /EXPORT:init_psutil_mswindows build\temp.win-amd64-2.6\Release\
psutil/_psutil_mswindows.obj build\temp.win-amd64-2.6\Release\psutil/_psutil_com
mon.obj build\temp.win-amd64-2.6\Release\psutil/arch/mswindows/process_info.obj
build\temp.win-amd64-2.6\Release\psutil/arch/mswindows/process_handles.obj build
\temp.win-amd64-2.6\Release\psutil/arch/mswindows/security.obj /OUT:build\lib.wi
n-amd64-2.6\_psutil_mswindows.pyd /IMPLIB:build\temp.win-amd64-2.6\Release\psuti
l\_psutil_mswindows.lib /MANIFESTFILE:build\temp.win-amd64-2.6\Release\psutil\_p
sutil_mswindows.pyd.manifest
Creating library build\temp.win-amd64-2.6\Release\psutil\_psutil_mswindows.lib and object build\temp.win-amd64-2.6\Release\psutil\_psutil_mswindows.exp_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__Py_BuildValue referenced in function _get_system_uptime
process_info.obj : error LNK2001: unresolved external symbol __imp__Py_BuildValue
process_handles.obj : error LNK2001: unresolved external symbol __imp__Py_BuildValue
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyBool_FromLong referenced in function _pid_exists
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyArg_ParseTuple referenced in function _pid_exists
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyList_Append referenced in function _get_pid_list
process_info.obj : error LNK2001: unresolved external symbol __imp__PyList_Append
process_handles.obj : error LNK2001: unresolved external symbol __imp__PyList_Append
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyList_New referenced in function _get_pid_list_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp___Py_NoneStruct referenced in function _kill_process
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyErr_SetFromWindowsErr referenced in function _kill_process
process_info.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetFromWindowsErr
security.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetFromWindowsErr
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyInt_FromLong referenced in function _process_wait
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyEval_RestoreThread referenced in function _process_wait
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyEval_SaveThread referenced in function _process_wait
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyErr_Clear referenced in function _get_process_cmdline
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyUnicodeUCS2_AsUTF8String referenced in function _get_process_cwd
process_info.obj : error LNK2001: unresolved external symbol __imp__PyUnicodeUCS2_AsUTF8String
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyUnicodeUCS2_FromWideChar referenced in function _get_process_cwd
process_info.obj : error LNK2001: unresolved external symbol __imp__PyUnicodeUCS
2_FromWideChar
process_handles.obj : error LNK2001: unresolved external symbol __imp__PyUnicodeUCS2_FromWideChar
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyExc_TypeError referenced in function _get_process_connections
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyErr_SetString referenced in function _get_process_connections
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyExc_NotImplementedError referenced in function _get_process_connections
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyTuple_New referenced in function _get_process_connections
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PySequence_Contains referenced in function _get_process_connections
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PySequence_Check referenced in function _get_process_connections
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyLong_FromLong referenced in function _get_process_connections
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp___Py_ZeroStruct referenced in function _is_process_suspended
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp___Py_TrueStruct referenced in function _is_process_suspended
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyDict_SetItem referenced in function _get_network_io_counters
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyUnicodeUCS2_FromObject referenced in function _get_network_io_counters
process_info.obj : error LNK2001: unresolved external symbol __imp__PyUnicodeUCS2_FromObject
process_handles.obj : error LNK2001: unresolved external symbol __imp__PyUnicodeUCS2_FromObject
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyExc_RuntimeError referenced in function _get_network_io_counters
process_info.obj : error LNK2001: unresolved external symbol __imp__PyExc_RuntimeError
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyDict_New referenced in function _get_network_io_counters
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyDict_SetItemString referenced in function _get_disk_io_counters
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyModule_AddIntConstant referenced in function _init_psutil_mswindows
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyErr_NewException referenced in function _init_psutil_mswindows
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__Py_InitModule4 referenced in function _init_psutil_mswindows
_psutil_common.obj : error LNK2019: unresolved external symbol __imp__PyErr_SetObject referenced in function _NoSuchProcess
_psutil_common.obj : error LNK2019: unresolved external symbol __imp__PyObject_CallFunction referenced in function _NoSuchProcess
_psutil_common.obj : error LNK2019: unresolved external symbol __imp__PyExc_OSError referenced in function _NoSuchProcess
process_info.obj : error LNK2019: unresolved external symbol __imp__PyErr_Format referenced in function _get_process_info
build\lib.win-amd64-2.6\_psutil_mswindows.pyd : fatal error LNK1120: 34 unresolved externals
error: command '"c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe"' failed with exit status 1120
Any ideas which library is missing from the default distutils config? How can I successfully build psutil in my environment?
For the benefit of other people with the same problem: make sure to use the Visual Studio x64 command prompt for launching the setup script.