RTP - LIB - Jrtplib



  • Hallo,

    vlt. kennt jemand diese Lib: http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib

    Mir ist nur nicht ganz klar, ob diese Lib komplett single threaded laufen kann. Soweit ich das im Quellcode sehe ja, aber ich wollte trotzdem nochmal nachfragen. Für mich ist es wichtig das die Lib single threaded ist.

    Gruß



  • The library uses the JThread library to automatically poll for incoming data in the background, so you may want to install it too. Of course, if you'd rather not have it installed, the library will also work without JThread (but you'll have to poll for incoming data yourself). Note that this version requires at least JThread 1.3.0



  • Das habe ich auch gelesen. Nur verstehe ich nicht ganz ob der Rest dann wirklich komplett single thread ist ?!

    Ok, hab die Lib mit Cmake gebaut und compiliert. Hab sie gelinkt und kriege trtozdem beim compilieren des examples nen Fehler 😕 jemand ne Idee ?

    Gruß

    1>------ Erstellen gestartet: Projekt: RTP Example 1.1, Konfiguration: Debug Win32 ------
    1>Verknüpfen...
    1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in RTP_example.obj definiert.
    1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) ist bereits in RTP_example.obj definiert.
    1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in RTP_example.obj definiert.
    1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in RTP_example.obj definiert.
    1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: void __thiscall std::_Mutex::_Lock(void)" (?_Lock@_Mutex@std@@QAEXXZ) ist bereits in libcpmtd.lib(xmutex.obj) definiert.
    1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: void __thiscall std::_Mutex::_Unlock(void)" (?_Unlock@_Mutex@std@@QAEXXZ) ist bereits in libcpmtd.lib(xmutex.obj) definiert.
    1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::flush(void)" (?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ) ist bereits in RTP_example.obj definiert.
    1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: void __thiscall std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" (?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ) ist bereits in RTP_example.obj definiert.
    1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "bool __cdecl std::uncaught_exception(void)" (?uncaught_exception@std@@YA_NXZ) ist bereits in libcpmtd.lib(uncaught.obj) definiert.
    1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: void __thiscall std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)" (?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) ist bereits in RTP_example.obj definiert.
    1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const *,int)" (?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z) ist bereits in RTP_example.obj definiert.
    1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputc(char)" (?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z) ist bereits in RTP_example.obj definiert.
    1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > & (__cdecl*)(class std::basic_ostream<char,struct std::char_traits<char> > &))" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z) ist bereits in RTP_example.obj definiert.
    1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::endl(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z) ist bereits in RTP_example.obj definiert.
    1>MSVCRT.lib(MSVCR90.dll) : error LNK2005: "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z) ist bereits in LIBCMT.lib(stdexcpt.obj) definiert.
    1>MSVCRT.lib(MSVCR90.dll) : error LNK2005: "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ) ist bereits in LIBCMT.lib(stdexcpt.obj) definiert.
    1>MSVCRT.lib(MSVCR90.dll) : error LNK2005: "public: __thiscall std::exception::exception(void)" (??0exception@std@@QAE@XZ) ist bereits in LIBCMT.lib(stdexcpt.obj) definiert.
    1>MSVCRT.lib(MSVCR90.dll) : error LNK2005: _strncpy_s ist bereits in LIBCMT.lib(strncpy_s.obj) definiert.
    1>MSVCRT.lib(MSVCR90.dll) : error LNK2005: __invalid_parameter_noinfo ist bereits in LIBCMT.lib(invarg.obj) definiert.
    1>MSVCRT.lib(MSVCR90.dll) : error LNK2005: "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z) ist bereits in LIBCMT.lib(stdexcpt.obj) definiert.
    1>MSVCRT.lib(MSVCR90.dll) : error LNK2005: _rand_s ist bereits in LIBCMT.lib(rand_s.obj) definiert.
    1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) ist bereits in LIBCMT.lib(typinfo.obj) definiert.
    1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) ist bereits in LIBCMT.lib(typinfo.obj) definiert.
    1>LINK : warning LNK4098: Standardbibliothek "LIBCMT" steht in Konflikt mit anderen Bibliotheken; /NODEFAULTLIB:Bibliothek verwenden.
    1>LINK : warning LNK4098: Standardbibliothek "MSVCRT" steht in Konflikt mit anderen Bibliotheken; /NODEFAULTLIB:Bibliothek verwenden.
    1>RTP_example.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__WSACleanup@0" in Funktion "_main".
    1>RTP_example.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__ntohl@4" in Funktion "_main".
    1>jrtplib.lib(rtpsources.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ntohl@4".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ntohl@4".
    1>jrtplib.lib(rtppacket.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ntohl@4".
    1>RTP_example.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__inet_addr@4" in Funktion "_main".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__inet_addr@4".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__inet_addr@4".
    1>RTP_example.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__WSAStartup@8" in Funktion "_main".
    1>libcpmtd.lib(stdthrow.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__CrtDbgReportW".
    1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__CrtDbgReportW".
    1>RTP_example.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__CrtDbgReportW" in Funktion ""protected: virtual char const * __thiscall std::ctype<char>::_Do_widen_s(char const *,char const *,char *,unsigned int)const " (?_Do_widen_s@?$ctype@D@std@@MBEPBDPBD0PADI@Z)".
    1>libcpmtd.lib(cout.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__CrtDbgReportW".
    1>libcpmtd.lib(cerr.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__CrtDbgReportW".
    1>libcpmtd.lib(cin.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__CrtDbgReportW".
    1>jrtplib.lib(rtpsession.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__gethostname@8" in Funktion ""private: int __thiscall jrtplib::RTPSession::CreateCNAME(unsigned char *,unsigned int *,bool)" (?CreateCNAME@RTPSession@jrtplib@@AAEHPAEPAI_N@Z)".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__gethostname@8".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__gethostname@8".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__gethostname@8".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__accept@12" in Funktion ""private: int __thiscall jrtplib::RTPExternalTransmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPExternalTransmitter@jrtplib@@AAEHXZ)".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__accept@12".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__accept@12".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__connect@12" in Funktion ""private: int __thiscall jrtplib::RTPExternalTransmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPExternalTransmitter@jrtplib@@AAEHXZ)".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__connect@12".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__connect@12".
    1>jrtplib.lib(rtppacket.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__htons@4".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__htons@4" in Funktion ""private: int __thiscall jrtplib::RTPExternalTransmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPExternalTransmitter@jrtplib@@AAEHXZ)".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__htons@4".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__htons@4".
    1>jrtplib.lib(rtcpcompoundpacketbuilder.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__htons@4".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__listen@8" in Funktion ""private: int __thiscall jrtplib::RTPExternalTransmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPExternalTransmitter@jrtplib@@AAEHXZ)".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__listen@8".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__listen@8".
    1>jrtplib.lib(rtcpcompoundpacket.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__ntohs@4" in Funktion ""protected: void __thiscall std::list<class jrtplib::RTCPPacket *,class std::allocator<class jrtplib::RTCPPacket *> >::_Incsize(unsigned int)" (?_Incsize@?$list@PAVRTCPPacket@jrtplib@@V?$allocator@PAVRTCPPacket@jrtplib@@@std@@@std@@IAEXI@Z)".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ntohs@4".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ntohs@4".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ntohs@4".
    1>jrtplib.lib(rtppacket.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ntohs@4".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__getsockname@12" in Funktion ""private: int __thiscall jrtplib::RTPExternalTransmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPExternalTransmitter@jrtplib@@AAEHXZ)".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__getsockname@12".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__getsockname@12".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__closesocket@4" in Funktion ""private: int __thiscall jrtplib::RTPExternalTransmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPExternalTransmitter@jrtplib@@AAEHXZ)".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__closesocket@4".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__closesocket@4".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__bind@12" in Funktion ""private: int __thiscall jrtplib::RTPExternalTransmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPExternalTransmitter@jrtplib@@AAEHXZ)".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__bind@12".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__bind@12".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__socket@12" in Funktion ""private: int __thiscall jrtplib::RTPExternalTransmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPExternalTransmitter@jrtplib@@AAEHXZ)".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__socket@12".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__socket@12".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__send@16" in Funktion ""private: void __thiscall jrtplib::RTPExternalTransmitter::AbortWaitInternal(void)" (?AbortWaitInternal@RTPExternalTransmitter@jrtplib@@AAEXXZ)".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__send@16".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__send@16".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__recv@16" in Funktion ""public: virtual int __thiscall jrtplib::RTPExternalTransmitter::WaitForIncomingData(class jrtplib::RTPTime const &,bool *)" (?WaitForIncomingData@RTPExternalTransmitter@jrtplib@@UAEHABVRTPTime@2@PA_N@Z)".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__recv@16".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__recv@16".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__ioctlsocket@12" in Funktion ""public: virtual int __thiscall jrtplib::RTPExternalTransmitter::WaitForIncomingData(class jrtplib::RTPTime const &,bool *)" (?WaitForIncomingData@RTPExternalTransmitter@jrtplib@@UAEHABVRTPTime@2@PA_N@Z)".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ioctlsocket@12".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ioctlsocket@12".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "___WSAFDIsSet@8" in Funktion ""public: virtual int __thiscall jrtplib::RTPExternalTransmitter::WaitForIncomingData(class jrtplib::RTPTime const &,bool *)" (?WaitForIncomingData@RTPExternalTransmitter@jrtplib@@UAEHABVRTPTime@2@PA_N@Z)".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___WSAFDIsSet@8".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___WSAFDIsSet@8".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__select@20" in Funktion ""public: virtual int __thiscall jrtplib::RTPExternalTransmitter::WaitForIncomingData(class jrtplib::RTPTime const &,bool *)" (?WaitForIncomingData@RTPExternalTransmitter@jrtplib@@UAEHABVRTPTime@2@PA_N@Z)".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__select@20".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__select@20".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__setsockopt@20" in Funktion ""private: bool __thiscall jrtplib::RTPUDPv6Transmitter::SetMulticastTTL(unsigned char)" (?SetMulticastTTL@RTPUDPv6Transmitter@jrtplib@@AAE_NE@Z)".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__setsockopt@20".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_in6addr_loopback" in Funktion ""private: int __thiscall jrtplib::RTPUDPv6Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv6Transmitter@jrtplib@@AAEHXZ)".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__sendto@24" in Funktion ""public: virtual int __thiscall jrtplib::RTPUDPv6Transmitter::SendRTPData(void const *,unsigned int)" (?SendRTPData@RTPUDPv6Transmitter@jrtplib@@UAEHPBXI@Z)".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__sendto@24".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__recvfrom@24" in Funktion ""private: int __thiscall jrtplib::RTPUDPv6Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv6Transmitter@jrtplib@@AAEH_N@Z)".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__recvfrom@24".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__WSAIoctl@36" in Funktion ""private: bool __thiscall jrtplib::RTPUDPv6Transmitter::GetLocalIPList_Interfaces(void)" (?GetLocalIPList_Interfaces@RTPUDPv6Transmitter@jrtplib@@AAE_NXZ)".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__WSAIoctl@36".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__freeaddrinfo@4" in Funktion ""private: void __thiscall jrtplib::RTPUDPv6Transmitter::GetLocalIPList_DNS(void)" (?GetLocalIPList_DNS@RTPUDPv6Transmitter@jrtplib@@AAEXXZ)".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__getaddrinfo@16" in Funktion ""private: void __thiscall jrtplib::RTPUDPv6Transmitter::GetLocalIPList_DNS(void)" (?GetLocalIPList_DNS@RTPUDPv6Transmitter@jrtplib@@AAEXXZ)".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__gethostbyaddr@12" in Funktion ""public: virtual int __thiscall jrtplib::RTPUDPv6Transmitter::GetLocalHostName(unsigned char *,unsigned int *)" (?GetLocalHostName@RTPUDPv6Transmitter@jrtplib@@UAEHPAEPAI@Z)".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__gethostbyaddr@12".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__htonl@4" in Funktion ""public: __thiscall jrtplib::RTPIPv4Destination::RTPIPv4Destination(unsigned int,unsigned short)" (??0RTPIPv4Destination@jrtplib@@QAE@IG@Z)".
    1>jrtplib.lib(rtcpcompoundpacketbuilder.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__htonl@4".
    1>jrtplib.lib(rtppacket.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__htonl@4".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__gethostbyname@4" in Funktion ""private: void __thiscall jrtplib::RTPUDPv4Transmitter::GetLocalIPList_DNS(void)" (?GetLocalIPList_DNS@RTPUDPv4Transmitter@jrtplib@@AAEXXZ)".
    1>libcpmtd.lib(xdebug.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__malloc_dbg" in Funktion ""void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)".
    1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__malloc_dbg".
    1>libcpmtd.lib(xdebug.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__free_dbg" in Funktion ""void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)".
    1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__free_dbg".
    1>libcpmtd.lib(_tolower.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__calloc_dbg" in Funktion "__Getctype".
    1>C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Visual Studio 2008\Projects\RTP Example 1.1\Debug\RTP Example 1.1.exe : fatal error LNK1120: 33 nicht aufgelöste externe Verweise.
    1>Das Buildprotokoll wurde unter "file://c:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Visual Studio 2008\Projects\RTP Example 1.1\RTP Example 1.1\Debug\BuildLog.htm" gespeichert.
    1>RTP Example 1.1 - 111 Fehler, 2 Warnung(en)
    


    1. Du benutzt für die Lib und das Programm nicht dieselben C++-Runtimebibliotheken.
    2. Da fehlt eine Socketbibliothek

    Beide Probleme haben nichts mit C++ als solchem (also dem Thema dieses Forums)
    zu tun.



  • 1. Ah du meinst also die Lib und das Beispiel wurden mit unterschiedlichen Laufzeitbibs kompiliert? Wenn ja wie behebe ich das bei VS 2008.

    2. Welche socket lib oO ?

    Kann sein, dann einfach Thema moven...



  • Croin schrieb:

    1. Ah du meinst also die Lib und das Beispiel wurden mit unterschiedlichen Laufzeitbibs kompiliert? Wenn ja wie behebe ich das bei VS 2008.

    Indem du überall die gleichen verwendest. Keine Ahnung, was man dem CMake da sagen muss.

    Croin schrieb:

    2. Welche socket lib oO ?

    Die von Windows (Winsock?).



  • Eine etwas aktualisierte Fehlermeldung hab die Einstellungen zwischen Release und Debug bissel verhauen

    1>------ Erstellen gestartet: Projekt: RTP Example 1.1, Konfiguration: Release Win32 ------
    1>Kompilieren...
    1>RTP_example.cpp
    1>Verknüpfen...
    1>RTP_example.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__WSACleanup@0".
    1>RTP_example.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__inet_addr@4".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__inet_addr@4".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__inet_addr@4".
    1>RTP_example.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ntohl@4".
    1>jrtplib.lib(rtpsources.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ntohl@4".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ntohl@4".
    1>jrtplib.lib(rtppacket.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ntohl@4".
    1>RTP_example.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__WSAStartup@8".
    1>jrtplib.lib(rtpsession.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__gethostname@8".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__gethostname@8".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__gethostname@8".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__gethostname@8".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__accept@12".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__accept@12".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__accept@12".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__connect@12".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__connect@12".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__connect@12".
    1>jrtplib.lib(rtppacket.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__htons@4".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__htons@4".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__htons@4".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__htons@4".
    1>jrtplib.lib(rtcpcompoundpacketbuilder.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__htons@4".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__listen@8".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__listen@8".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__listen@8".
    1>jrtplib.lib(rtcpcompoundpacket.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ntohs@4".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ntohs@4".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ntohs@4".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ntohs@4".
    1>jrtplib.lib(rtppacket.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ntohs@4".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__getsockname@12".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__getsockname@12".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__getsockname@12".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__closesocket@4".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__closesocket@4".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__closesocket@4".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__bind@12".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__bind@12".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__bind@12".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__socket@12".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__socket@12".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__socket@12".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__send@16".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__send@16".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__send@16".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__recv@16".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__recv@16".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__recv@16".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ioctlsocket@12".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ioctlsocket@12".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__ioctlsocket@12".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___WSAFDIsSet@8".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___WSAFDIsSet@8".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___WSAFDIsSet@8".
    1>jrtplib.lib(rtpexternaltransmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__select@20".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__select@20".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__select@20".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__setsockopt@20".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__setsockopt@20".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_in6addr_loopback".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__sendto@24".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__sendto@24".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__recvfrom@24".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__recvfrom@24".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__WSAIoctl@36".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__WSAIoctl@36".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__freeaddrinfo@4".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__getaddrinfo@16".
    1>jrtplib.lib(rtpudpv6transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__gethostbyaddr@12".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__gethostbyaddr@12".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__htonl@4".
    1>jrtplib.lib(rtcpcompoundpacketbuilder.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__htonl@4".
    1>jrtplib.lib(rtppacket.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__htonl@4".
    1>jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__gethostbyname@4".
    1>C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Visual Studio 2008\Projects\RTP Example 1.1\Release\RTP Example 1.1.exe : fatal error LNK1120: 29 nicht aufgelöste externe Verweise.
    1>Das Buildprotokoll wurde unter "file://c:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Visual Studio 2008\Projects\RTP Example 1.1\RTP Example 1.1\Release\BuildLog.htm" gespeichert.
    1>RTP Example 1.1 - 77 Fehler, 0 Warnung(en)
    ========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
    

    Aber wo haste da Winsock gesehen 😮 ? Danke zudem für die Hilfe!

    Naja 😞 jedenfalls funkt es immernoch net! Also bin jedes Rates dankbar!

    Gruß



  • Croin schrieb:

    Aber wo haste da Winsock gesehen 😮 ? Danke zudem für die Hilfe!

    Naja 😞 jedenfalls funkt es immernoch net! Also bin jedes Rates dankbar!

    Gruß

    Das sieht man, wenn man schon etwas länger die WIN API benutzt 😉
    Dir fehlt die ws2_32.lib, sag deinem Linker mal, dass er auch gegen die linken soll.



  • Wow 😃 vielen Dank!
    Ich wäre niemaals von alleine draufgekommen!
    An was haste erkannt das hier eine lib gefehlt hat?

    Gruß



  • Da steht error LNK2001: Nicht aufgelöstes externes Symbol "__imp__gethostbyname@4"
    Das heißt die Funktion gethostbyname ist deklariert, aber nicht definiert. Dann kuckst du in die Doku und scrollst ein bisschen und findest Library: Ws2_32.lib.


Anmelden zum Antworten