Solved my own problem. The problem is solved by linking to ws2_32.lib.<br><br>Found the answer here: <a href="http://www.openldap.org/lists/openldap-software/200105/msg00552.html">http://www.openldap.org/lists/openldap-software/200105/msg00552.html
</a><br><br>Cheers,<br><br>Rick<br><br><div><span class="gmail_quote">On 6/2/06, <b class="gmail_sendername">Richard Monette</b> &lt;<a href="mailto:richard.monette@gmail.com">richard.monette@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>I have successfully built and tested the examples using Visual Studio 2003 on Windows XP.
<br><br>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 &quot;_printf etc, etc&quot; errors I have switched to compile in multithreaded debug. 
<br><br>Any ideas?<br><br>Thanks very much, <br><br>Richard Monette<br><br>The errors;<br><br>------ Build started: Project: NewLiveProject, Configuration: Debug Win32 ------<br><br>Linking...<br>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
<br>libgroupsock.lib(NetAddress.obj) : error LNK2001: unresolved external symbol __imp__ntohs@4<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2001: unresolved external symbol __imp__ntohs@4<br>libLiveMedia.lib(RTSPServer.obj

) : error LNK2019: unresolved external symbol __imp__ntohs@4 referenced in function &quot;public: char * __thiscall RTSPServer::rtspURL(class ServerMediaSession const *)const &quot; (?rtspURL@RTSPServer@@QBEPADPBVServerMediaSession@@@Z)
<br>libLiveMedia.lib(OnDemandServerMediaSubsession.obj) : error LNK2001: unresolved external symbol __imp__ntohs@4<br>libLiveMedia.lib(RTCP.obj) : error LNK2001: unresolved external symbol __imp__ntohs@4<br>libLiveMedia.lib

(RTPInterface.obj) : error LNK2001: unresolved external symbol __imp__ntohs@4<br>libLiveMedia.lib(RTSPServer.obj) : error LNK2019: unresolved external symbol __imp__closesocket@4 referenced in function &quot;protected: static int __cdecl RTSPServer::setUpOurSocket(class UsageEnvironment &amp;,class Port &amp;)&quot; (?setUpOurSocket@RTSPServer@@KAHAAVUsageEnvironment@@AAVPort@@@Z)
<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2001: unresolved external symbol __imp__closesocket@4<br>libgroupsock.lib(NetInterface.obj) : error LNK2001: unresolved external symbol __imp__closesocket@4<br>libLiveMedia.lib

(RTSPServer.obj) : error LNK2019: unresolved external symbol __imp__listen@8 referenced in function &quot;protected: static int __cdecl RTSPServer::setUpOurSocket(class UsageEnvironment &amp;,class Port &amp;)&quot; (?setUpOurSocket@RTSPServer@@KAHAAVUsageEnvironment@@AAVPort@@@Z)
<br>libLiveMedia.lib(RTSPServer.obj) : error LNK2019: unresolved external symbol __imp__send@16 referenced in function &quot;private: void __thiscall RTSPServer::RTSPClientSession::incomingRequestHandler1(void)&quot; (?incomingRequestHandler1@
RTSPClientSession@RTSPServer@@AAEXXZ)<br>libLiveMedia.lib(RTPInterface.obj) : error LNK2001: unresolved external symbol __imp__send@16<br>libLiveMedia.lib(RTSPServer.obj) : error LNK2019: unresolved external symbol __imp__accept@12 referenced in function &quot;private: void __thiscall RTSPServer::incomingConnectionHandler1(void)&quot; (?incomingConnectionHandler1@RTSPServer@@AAEXXZ)
<br>libLiveMedia.lib(MediaSink.obj) : error LNK2019: unresolved external symbol __imp__htonl@4 referenced in function &quot;public: void __thiscall OutPacketBuffer::enqueueWord(unsigned int)&quot; (?enqueueWord@OutPacketBuffer@@
QAEXI@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__htonl@4 referenced in function &quot;unsigned int __cdecl getBufferSize(class UsageEnvironment &amp;,int,int)&quot; (?getBufferSize@@YAIAAVUsageEnvironment@@
HH@Z)<br>libLiveMedia.lib(MediaSink.obj) : error LNK2019: unresolved external symbol __imp__ntohl@4 referenced in function &quot;public: unsigned int __thiscall OutPacketBuffer::extractWord(unsigned int)&quot; (?extractWord@OutPacketBuffer@@
QAEII@Z)<br>libLiveMedia.lib(RTCP.obj) : error LNK2019: unresolved external symbol __imp__ntohl@4 referenced in function &quot;protected: virtual __thiscall RTCPInstance::~RTCPInstance(void)&quot; (??1RTCPInstance@@MAE@XZ

)<br>libgroupsock.lib(NetAddress.obj) : error LNK2001: unresolved external symbol __imp__ntohl@4<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2001: unresolved external symbol __imp__ntohl@4<br>libLiveMedia.lib(OnDemandServerMediaSubsession.obj

) : error LNK2019: unresolved external symbol __imp__gethostname@8 referenced in function &quot;protected: __thiscall OnDemandServerMediaSubsession::OnDemandServerMediaSubsession(class UsageEnvironment &amp;,unsigned int)&quot; (??0OnDemandServerMediaSubsession@@
IAE@AAVUsageEnvironment@@I@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__gethostname@8 referenced in function &quot;int __cdecl setupDatagramSocket(class UsageEnvironment &amp;,class Port,unsigned int)&quot; (?setupDatagramSocket@@YAHAAVUsageEnvironment@@VPort@@
I@Z)<br>libgroupsock.lib(NetAddress.obj) : error LNK2019: unresolved external symbol __imp__htons@4 referenced in function &quot;public: __thiscall Port::Port(unsigned short)&quot; (??0Port@@QAE@G@Z)<br>libgroupsock.lib(
inet.obj
) : error LNK2019: unresolved external symbol __imp__inet_addr@4 referenced in function _our_inet_addr<br>libgroupsock.lib(inet.obj) : error LNK2019: unresolved external symbol __imp__inet_ntoa@4 referenced in function _our_inet_ntoa
<br>libgroupsock.lib(inet.obj) : error LNK2019: unresolved external symbol __imp__WSACleanup@0 referenced in function _initializeWinsockIfNecessary<br>libgroupsock.lib(inet.obj) : error LNK2019: unresolved external symbol __imp__WSAStartup@8 referenced in function _initializeWinsockIfNecessary
<br>libgroupsock.lib(inet.obj) : error LNK2019: unresolved external symbol __imp__gethostbyname@4 referenced in function _our_gethostbyname<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__gethostbyname@4 referenced in function &quot;int __cdecl setupStreamSocket(class UsageEnvironment &amp;,class Port,unsigned int)&quot; (?setupStreamSocket@@YAHAAVUsageEnvironment@@VPort@@
I@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__bind@12 referenced in function &quot;int __cdecl setupDatagramSocket(class UsageEnvironment &amp;,class Port,unsigned int)&quot; (?setupDatagramSocket@@YAHAAVUsageEnvironment@@VPort@@
I@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__setsockopt@20 referenced in function &quot;int __cdecl setupDatagramSocket(class UsageEnvironment &amp;,class Port,unsigned int)&quot; (?setupDatagramSocket@@YAHAAVUsageEnvironment@@VPort@@
I@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__socket@12 referenced in function &quot;int __cdecl setupDatagramSocket(class UsageEnvironment &amp;,class Port,unsigned int)&quot; (?setupDatagramSocket@@YAHAAVUsageEnvironment@@VPort@@
I@Z)<br>libBasicUsageEnvironment.lib(BasicTaskScheduler.obj) : error LNK2019: unresolved external symbol __imp__socket@12 referenced in function _$E8<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__ioctlsocket@12 referenced in function &quot;int __cdecl setupStreamSocket(class UsageEnvironment &amp;,class Port,unsigned int)&quot; (?setupStreamSocket@@YAHAAVUsageEnvironment@@VPort@@
I@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__recvfrom@24 referenced in function &quot;int __cdecl readSocket(class UsageEnvironment &amp;,int,unsigned char *,unsigned int,struct sockaddr_in &amp;,struct timeval *)&quot; (?readSocket@@YAHAAVUsageEnvironment@@HPAEIAAUsockaddr_in@@PAUtimeval@@@Z)
<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol ___WSAFDIsSet@8 referenced in function &quot;int __cdecl blockUntilReadable(class UsageEnvironment &amp;,int,struct timeval *)&quot; (?blockUntilReadable@@YAHAAVUsageEnvironment@@HPAUtimeval@@@Z)
<br>libBasicUsageEnvironment.lib(BasicTaskScheduler.obj) : error LNK2019: unresolved external symbol ___WSAFDIsSet@8 referenced in function &quot;public: virtual void * __thiscall BasicTaskScheduler::`scalar deleting destructor'(unsigned int)&quot; (??_GBasicTaskScheduler@@
UAEPAXI@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__select@20 referenced in function &quot;int __cdecl blockUntilReadable(class UsageEnvironment &amp;,int,struct timeval *)&quot; (?blockUntilReadable@@YAHAAVUsageEnvironment@@HPAUtimeval@@@Z)
<br>libBasicUsageEnvironment.lib(BasicTaskScheduler.obj) : error LNK2001: unresolved external symbol __imp__select@20<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__sendto@24 referenced in function &quot;unsigned int __cdecl writeSocket(class UsageEnvironment &amp;,int,struct in_addr,class Port,unsigned char,unsigned char *,unsigned int)&quot; (?writeSocket@@YAIAAVUsageEnvironment@@HUin_addr@@VPort@@
EPAEI@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__getsockopt@20 referenced in function &quot;unsigned int __cdecl getBufferSize(class UsageEnvironment &amp;,int,int)&quot; (?getBufferSize@@YAIAAVUsageEnvironment@@
HH@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__getsockname@12 referenced in function &quot;unsigned int __cdecl getSourcePort0(int,unsigned short &amp;)&quot; (?getSourcePort0@@
YAIHAAG@Z)<br>libBasicUsageEnvironment.lib(BasicUsageEnvironment.obj) : error LNK2019: unresolved external symbol __imp__WSAGetLastError@0 referenced in function &quot;public: virtual int __thiscall BasicUsageEnvironment::getErrno(void)const &quot; (?getErrno@BasicUsageEnvironment@@UBEHXZ)
<br>libBasicUsageEnvironment.lib(BasicTaskScheduler.obj) : error LNK2019: unresolved external symbol __imp__WSAGetLastError@0 referenced in function &quot;protected: virtual void __thiscall BasicTaskScheduler::SingleStep(unsigned int)&quot; (?SingleStep@BasicTaskScheduler@@
MAEXI@Z)<br>Debug/NewLiveProject.exe : fatal error LNK1120: 25 unresolved externals<br><br>Build log was saved at &quot;<a>file://c:\Documents</a> and Settings\support\Desktop\Richards Live\live\NewLiveProject\NewLiveProject\Debug\BuildLog.htm&quot;
<br>NewLiveProject - 44 error(s), 1 warning(s)<br><br><br>---------------------- Done ----------------------<br><br>&nbsp;&nbsp;&nbsp; Build: 0 succeeded, 1 failed, 0 skipped<br><br><br><br>

</div></blockquote></div><br>