[Live-devel] Unresolved External Symbols

Richard Monette richard.monette at gmail.com
Fri Jun 2 07:47:58 PDT 2006


I have successfully built and tested the examples using Visual Studio 2003
on Windows XP.

I am attempting to create my own new project using the libraries. I have
linked all the libraries ( that I could find at least ) and included all the
header files ( that I could find at least ) but I am still getting
unresolved externals. In order to get rid of a bunch of "_printf etc, etc"
errors I have switched to compile in multithreaded debug.

Any ideas?

Thanks very much,

Richard Monette

The errors;

------ Build started: Project: NewLiveProject, Configuration: Debug Win32
------

Linking...
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
libs; use /NODEFAULTLIB:library
libgroupsock.lib(NetAddress.obj) : error LNK2001: unresolved external symbol
__imp__ntohs at 4
libgroupsock.lib(GroupsockHelper.obj) : error LNK2001: unresolved external
symbol __imp__ntohs at 4
libLiveMedia.lib(RTSPServer.obj) : error LNK2019: unresolved external symbol
__imp__ntohs at 4 referenced in function "public: char * __thiscall
RTSPServer::rtspURL(class ServerMediaSession const *)const "
(?rtspURL at RTSPServer@@QBEPADPBVServerMediaSession@@@Z)
libLiveMedia.lib(OnDemandServerMediaSubsession.obj) : error LNK2001:
unresolved external symbol __imp__ntohs at 4
libLiveMedia.lib(RTCP.obj) : error LNK2001: unresolved external symbol
__imp__ntohs at 4
libLiveMedia.lib(RTPInterface.obj) : error LNK2001: unresolved external
symbol __imp__ntohs at 4
libLiveMedia.lib(RTSPServer.obj) : error LNK2019: unresolved external symbol
__imp__closesocket at 4 referenced in function "protected: static int __cdecl
RTSPServer::setUpOurSocket(class UsageEnvironment &,class Port &)"
(?setUpOurSocket at RTSPServer@@KAHAAVUsageEnvironment@@AAVPort@@@Z)
libgroupsock.lib(GroupsockHelper.obj) : error LNK2001: unresolved external
symbol __imp__closesocket at 4
libgroupsock.lib(NetInterface.obj) : error LNK2001: unresolved external
symbol __imp__closesocket at 4
libLiveMedia.lib(RTSPServer.obj) : error LNK2019: unresolved external symbol
__imp__listen at 8 referenced in function "protected: static int __cdecl
RTSPServer::setUpOurSocket(class UsageEnvironment &,class Port &)"
(?setUpOurSocket at RTSPServer@@KAHAAVUsageEnvironment@@AAVPort@@@Z)
libLiveMedia.lib(RTSPServer.obj) : error LNK2019: unresolved external symbol
__imp__send at 16 referenced in function "private: void __thiscall
RTSPServer::RTSPClientSession::incomingRequestHandler1(void)"
(?incomingRequestHandler1 at RTSPClientSession@RTSPServer@@AAEXXZ)
libLiveMedia.lib(RTPInterface.obj) : error LNK2001: unresolved external
symbol __imp__send at 16
libLiveMedia.lib(RTSPServer.obj) : error LNK2019: unresolved external symbol
__imp__accept at 12 referenced in function "private: void __thiscall
RTSPServer::incomingConnectionHandler1(void)"
(?incomingConnectionHandler1 at RTSPServer@@AAEXXZ)
libLiveMedia.lib(MediaSink.obj) : error LNK2019: unresolved external symbol
__imp__htonl at 4 referenced in function "public: void __thiscall
OutPacketBuffer::enqueueWord(unsigned int)" (?enqueueWord at OutPacketBuffer@@
QAEXI at Z)
libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external
symbol __imp__htonl at 4 referenced in function "unsigned int __cdecl
getBufferSize(class UsageEnvironment &,int,int)"
(?getBufferSize@@YAIAAVUsageEnvironment@@HH at Z)
libLiveMedia.lib(MediaSink.obj) : error LNK2019: unresolved external symbol
__imp__ntohl at 4 referenced in function "public: unsigned int __thiscall
OutPacketBuffer::extractWord(unsigned int)" (?extractWord at OutPacketBuffer@@
QAEII at Z)
libLiveMedia.lib(RTCP.obj) : error LNK2019: unresolved external symbol
__imp__ntohl at 4 referenced in function "protected: virtual __thiscall
RTCPInstance::~RTCPInstance(void)" (??1RTCPInstance@@MAE at XZ)
libgroupsock.lib(NetAddress.obj) : error LNK2001: unresolved external symbol
__imp__ntohl at 4
libgroupsock.lib(GroupsockHelper.obj) : error LNK2001: unresolved external
symbol __imp__ntohl at 4
libLiveMedia.lib(OnDemandServerMediaSubsession.obj) : error LNK2019:
unresolved external symbol __imp__gethostname at 8 referenced in function
"protected: __thiscall
OnDemandServerMediaSubsession::OnDemandServerMediaSubsession(class
UsageEnvironment &,unsigned int)" (??0OnDemandServerMediaSubsession@@
IAE at AAVUsageEnvironment@@I at Z)
libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external
symbol __imp__gethostname at 8 referenced in function "int __cdecl
setupDatagramSocket(class UsageEnvironment &,class Port,unsigned int)"
(?setupDatagramSocket@@YAHAAVUsageEnvironment@@VPort@@I at Z)
libgroupsock.lib(NetAddress.obj) : error LNK2019: unresolved external symbol
__imp__htons at 4 referenced in function "public: __thiscall
Port::Port(unsigned short)" (??0Port@@QAE at G@Z)
libgroupsock.lib(inet.obj) : error LNK2019: unresolved external symbol
__imp__inet_addr at 4 referenced in function _our_inet_addr
libgroupsock.lib(inet.obj) : error LNK2019: unresolved external symbol
__imp__inet_ntoa at 4 referenced in function _our_inet_ntoa
libgroupsock.lib(inet.obj) : error LNK2019: unresolved external symbol
__imp__WSACleanup at 0 referenced in function _initializeWinsockIfNecessary
libgroupsock.lib(inet.obj) : error LNK2019: unresolved external symbol
__imp__WSAStartup at 8 referenced in function _initializeWinsockIfNecessary
libgroupsock.lib(inet.obj) : error LNK2019: unresolved external symbol
__imp__gethostbyname at 4 referenced in function _our_gethostbyname
libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external
symbol __imp__gethostbyname at 4 referenced in function "int __cdecl
setupStreamSocket(class UsageEnvironment &,class Port,unsigned int)"
(?setupStreamSocket@@YAHAAVUsageEnvironment@@VPort@@I at Z)
libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external
symbol __imp__bind at 12 referenced in function "int __cdecl
setupDatagramSocket(class UsageEnvironment &,class Port,unsigned int)"
(?setupDatagramSocket@@YAHAAVUsageEnvironment@@VPort@@I at Z)
libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external
symbol __imp__setsockopt at 20 referenced in function "int __cdecl
setupDatagramSocket(class UsageEnvironment &,class Port,unsigned int)"
(?setupDatagramSocket@@YAHAAVUsageEnvironment@@VPort@@I at Z)
libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external
symbol __imp__socket at 12 referenced in function "int __cdecl
setupDatagramSocket(class UsageEnvironment &,class Port,unsigned int)"
(?setupDatagramSocket@@YAHAAVUsageEnvironment@@VPort@@I at Z)
libBasicUsageEnvironment.lib(BasicTaskScheduler.obj) : error LNK2019:
unresolved external symbol __imp__socket at 12 referenced in function _$E8
libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external
symbol __imp__ioctlsocket at 12 referenced in function "int __cdecl
setupStreamSocket(class UsageEnvironment &,class Port,unsigned int)"
(?setupStreamSocket@@YAHAAVUsageEnvironment@@VPort@@I at Z)
libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external
symbol __imp__recvfrom at 24 referenced in function "int __cdecl
readSocket(class UsageEnvironment &,int,unsigned char *,unsigned int,struct
sockaddr_in &,struct timeval *)"
(?readSocket@@YAHAAVUsageEnvironment@@HPAEIAAUsockaddr_in@@PAUtimeval@@@Z)
libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external
symbol ___WSAFDIsSet at 8 referenced in function "int __cdecl
blockUntilReadable(class UsageEnvironment &,int,struct timeval *)"
(?blockUntilReadable@@YAHAAVUsageEnvironment@@HPAUtimeval@@@Z)
libBasicUsageEnvironment.lib(BasicTaskScheduler.obj) : error LNK2019:
unresolved external symbol ___WSAFDIsSet at 8 referenced in function "public:
virtual void * __thiscall BasicTaskScheduler::`scalar deleting
destructor'(unsigned int)" (??_GBasicTaskScheduler@@UAEPAXI at Z)
libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external
symbol __imp__select at 20 referenced in function "int __cdecl
blockUntilReadable(class UsageEnvironment &,int,struct timeval *)"
(?blockUntilReadable@@YAHAAVUsageEnvironment@@HPAUtimeval@@@Z)
libBasicUsageEnvironment.lib(BasicTaskScheduler.obj) : error LNK2001:
unresolved external symbol __imp__select at 20
libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external
symbol __imp__sendto at 24 referenced in function "unsigned int __cdecl
writeSocket(class UsageEnvironment &,int,struct in_addr,class Port,unsigned
char,unsigned char *,unsigned int)"
(?writeSocket@@YAIAAVUsageEnvironment@@HUin_addr@@VPort@@EPAEI at Z)
libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external
symbol __imp__getsockopt at 20 referenced in function "unsigned int __cdecl
getBufferSize(class UsageEnvironment &,int,int)"
(?getBufferSize@@YAIAAVUsageEnvironment@@HH at Z)
libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external
symbol __imp__getsockname at 12 referenced in function "unsigned int __cdecl
getSourcePort0(int,unsigned short &)" (?getSourcePort0@@YAIHAAG at Z)
libBasicUsageEnvironment.lib(BasicUsageEnvironment.obj) : error LNK2019:
unresolved external symbol __imp__WSAGetLastError at 0 referenced in function
"public: virtual int __thiscall BasicUsageEnvironment::getErrno(void)const "
(?getErrno at BasicUsageEnvironment@@UBEHXZ)
libBasicUsageEnvironment.lib(BasicTaskScheduler.obj) : error LNK2019:
unresolved external symbol __imp__WSAGetLastError at 0 referenced in function
"protected: virtual void __thiscall BasicTaskScheduler::SingleStep(unsigned
int)" (?SingleStep at BasicTaskScheduler@@MAEXI at Z)
Debug/NewLiveProject.exe : fatal error LNK1120: 25 unresolved externals

Build log was saved at "file://c:\Documents and
Settings\support\Desktop\Richards
Live\live\NewLiveProject\NewLiveProject\Debug\BuildLog.htm"
NewLiveProject - 44 error(s), 1 warning(s)


---------------------- Done ----------------------

    Build: 0 succeeded, 1 failed, 0 skipped
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20060602/029f3168/attachment-0001.html 


More information about the live-devel mailing list