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> <<a href="mailto:richard.monette@gmail.com">richard.monette@gmail.com</a>> 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 "_printf etc, etc" 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 "public: char * __thiscall RTSPServer::rtspURL(class ServerMediaSession const *)const " (?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 "protected: static int __cdecl RTSPServer::setUpOurSocket(class UsageEnvironment &,class Port &)" (?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 "protected: static int __cdecl RTSPServer::setUpOurSocket(class UsageEnvironment &,class Port &)" (?setUpOurSocket@RTSPServer@@KAHAAVUsageEnvironment@@AAVPort@@@Z)
<br>libLiveMedia.lib(RTSPServer.obj) : error LNK2019: unresolved external symbol __imp__send@16 referenced in function "private: void __thiscall RTSPServer::RTSPClientSession::incomingRequestHandler1(void)" (?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 "private: void __thiscall RTSPServer::incomingConnectionHandler1(void)" (?incomingConnectionHandler1@RTSPServer@@AAEXXZ)
<br>libLiveMedia.lib(MediaSink.obj) : error LNK2019: unresolved external symbol __imp__htonl@4 referenced in function "public: void __thiscall OutPacketBuffer::enqueueWord(unsigned int)" (?enqueueWord@OutPacketBuffer@@
QAEXI@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__htonl@4 referenced in function "unsigned int __cdecl getBufferSize(class UsageEnvironment &,int,int)" (?getBufferSize@@YAIAAVUsageEnvironment@@
HH@Z)<br>libLiveMedia.lib(MediaSink.obj) : error LNK2019: unresolved external symbol __imp__ntohl@4 referenced in function "public: unsigned int __thiscall OutPacketBuffer::extractWord(unsigned int)" (?extractWord@OutPacketBuffer@@
QAEII@Z)<br>libLiveMedia.lib(RTCP.obj) : error LNK2019: unresolved external symbol __imp__ntohl@4 referenced in function "protected: virtual __thiscall RTCPInstance::~RTCPInstance(void)" (??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 "protected: __thiscall OnDemandServerMediaSubsession::OnDemandServerMediaSubsession(class UsageEnvironment &,unsigned int)" (??0OnDemandServerMediaSubsession@@
IAE@AAVUsageEnvironment@@I@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__gethostname@8 referenced in function "int __cdecl setupDatagramSocket(class UsageEnvironment &,class Port,unsigned int)" (?setupDatagramSocket@@YAHAAVUsageEnvironment@@VPort@@
I@Z)<br>libgroupsock.lib(NetAddress.obj) : error LNK2019: unresolved external symbol __imp__htons@4 referenced in function "public: __thiscall Port::Port(unsigned short)" (??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 "int __cdecl setupStreamSocket(class UsageEnvironment &,class Port,unsigned int)" (?setupStreamSocket@@YAHAAVUsageEnvironment@@VPort@@
I@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__bind@12 referenced in function "int __cdecl setupDatagramSocket(class UsageEnvironment &,class Port,unsigned int)" (?setupDatagramSocket@@YAHAAVUsageEnvironment@@VPort@@
I@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__setsockopt@20 referenced in function "int __cdecl setupDatagramSocket(class UsageEnvironment &,class Port,unsigned int)" (?setupDatagramSocket@@YAHAAVUsageEnvironment@@VPort@@
I@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__socket@12 referenced in function "int __cdecl setupDatagramSocket(class UsageEnvironment &,class Port,unsigned int)" (?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 "int __cdecl setupStreamSocket(class UsageEnvironment &,class Port,unsigned int)" (?setupStreamSocket@@YAHAAVUsageEnvironment@@VPort@@
I@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__recvfrom@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)
<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol ___WSAFDIsSet@8 referenced in function "int __cdecl blockUntilReadable(class UsageEnvironment &,int,struct timeval *)" (?blockUntilReadable@@YAHAAVUsageEnvironment@@HPAUtimeval@@@Z)
<br>libBasicUsageEnvironment.lib(BasicTaskScheduler.obj) : error LNK2019: unresolved external symbol ___WSAFDIsSet@8 referenced in function "public: virtual void * __thiscall BasicTaskScheduler::`scalar deleting destructor'(unsigned int)" (??_GBasicTaskScheduler@@
UAEPAXI@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__select@20 referenced in function "int __cdecl blockUntilReadable(class UsageEnvironment &,int,struct timeval *)" (?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 "unsigned int __cdecl writeSocket(class UsageEnvironment &,int,struct in_addr,class Port,unsigned char,unsigned char *,unsigned int)" (?writeSocket@@YAIAAVUsageEnvironment@@HUin_addr@@VPort@@
EPAEI@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__getsockopt@20 referenced in function "unsigned int __cdecl getBufferSize(class UsageEnvironment &,int,int)" (?getBufferSize@@YAIAAVUsageEnvironment@@
HH@Z)<br>libgroupsock.lib(GroupsockHelper.obj) : error LNK2019: unresolved external symbol __imp__getsockname@12 referenced in function "unsigned int __cdecl getSourcePort0(int,unsigned short &)" (?getSourcePort0@@
YAIHAAG@Z)<br>libBasicUsageEnvironment.lib(BasicUsageEnvironment.obj) : error LNK2019: unresolved external symbol __imp__WSAGetLastError@0 referenced in function "public: virtual int __thiscall BasicUsageEnvironment::getErrno(void)const " (?getErrno@BasicUsageEnvironment@@UBEHXZ)
<br>libBasicUsageEnvironment.lib(BasicTaskScheduler.obj) : error LNK2019: unresolved external symbol __imp__WSAGetLastError@0 referenced in function "protected: virtual void __thiscall BasicTaskScheduler::SingleStep(unsigned int)" (?SingleStep@BasicTaskScheduler@@
MAEXI@Z)<br>Debug/NewLiveProject.exe : fatal error LNK1120: 25 unresolved externals<br><br>Build log was saved at "<a>file://c:\Documents</a> and Settings\support\Desktop\Richards Live\live\NewLiveProject\NewLiveProject\Debug\BuildLog.htm"
<br>NewLiveProject - 44 error(s), 1 warning(s)<br><br><br>---------------------- Done ----------------------<br><br> Build: 0 succeeded, 1 failed, 0 skipped<br><br><br><br>
</div></blockquote></div><br>