|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Junior Member
Iscritto dal: Feb 2006
Messaggi: 4
|
[c++] Richiesta Aiuto Per Tesi Su RTP Protocol!
Salve a tutti visto che sto sbattendo la testa da qualche giorno senza cavarne un ragno dal buco, spero che qualcuno tra i miliardi di miliardi di persone che affollano questo forum ce ne sia almeno uno che possa aiutarmi.
Sto utilizzando la libreria JRTPLIB scaricabile da questo indirizzo , che in pratica sono delle librerie per C++ che implementano tutte le primitive più utili per instaurare una comunicazione col protocollo RTP. Io lavoro col Visual c++ e Visual Studio .Net, e tali librerie funzionano anche in ambiente windows. Il problema è il seguente: quando vado a fare il linking del Programma di esempio JRTPConsole.zip che si trova nella stesso sito delle librerie su indicate (in cui ho incluso in visual studio la path per andarsi a prendere la libreria generata dalle jrtplib e jthread) mi da i seguenti erroracci: Linking... ConsoleServer fatal error LNK1120: 15 esterni non risolti ConsoleClient fatal error LNK1120: 15 esterni non risolti ConsoleServer error LNK2019: riferimento al simbolo esterno "public: int __thiscall JThread::Start(void)" (?Start@JThread@@QAEHXZ) non risolto nella funzione "public: int __thiscall RTPPollThread::Start(class RTPTransmitter *)" (?Start@RTPPollThread@@QAEHPAVRTPTransmitter@@@Z) ConsoleClient error LNK2019: riferimento al simbolo esterno "public: int __thiscall JThread::Start(void)" (?Start@JThread@@QAEHXZ) non risolto nella funzione "public: int __thiscall RTPPollThread::Start(class RTPTransmitter *)" (?Start@RTPPollThread@@QAEHPAVRTPTransmitter@@@Z) ConsoleServer error LNK2019: riferimento al simbolo esterno "public: int __thiscall JThread::Kill(void)" (?Kill@JThread@@QAEHXZ) non risolto nella funzione "public: void __thiscall RTPPollThread::Stop(void)" (?Stop@RTPPollThread@@QAEXXZ) ConsoleClient error LNK2019: riferimento al simbolo esterno "public: int __thiscall JThread::Kill(void)" (?Kill@JThread@@QAEHXZ) non risolto nella funzione "public: void __thiscall RTPPollThread::Stop(void)" (?Stop@RTPPollThread@@QAEXXZ) ConsoleServer error LNK2019: riferimento al simbolo esterno "public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ) non risolto nella funzione "public: unsigned int __thiscall RTPSession::GetLocalSSRC(void)" (?GetLocalSSRC@RTPSession@@QAEIXZ) ConsoleClient error LNK2019: riferimento al simbolo esterno "public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ) non risolto nella funzione "public: unsigned int __thiscall RTPSession::GetLocalSSRC(void)" (?GetLocalSSRC@RTPSession@@QAEIXZ) ConsoleServer error LNK2019: riferimento al simbolo esterno "public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ) non risolto nella funzione "public: unsigned int __thiscall RTPSession::GetLocalSSRC(void)" (?GetLocalSSRC@RTPSession@@QAEIXZ) ConsoleClient error LNK2019: riferimento al simbolo esterno "public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ) non risolto nella funzione "public: unsigned int __thiscall RTPSession::GetLocalSSRC(void)" (?GetLocalSSRC@RTPSession@@QAEIXZ) ConsoleServer error LNK2019: riferimento al simbolo esterno "public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ) non risolto nella funzione "private: int __thiscall RTPSession::InternalCreate(class RTPSessionParams const &)" (?InternalCreate@RTPSession@@AAEHABVRTPSessionParams@@@Z) ConsoleClient error LNK2019: riferimento al simbolo esterno "public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ) non risolto nella funzione "private: int __thiscall RTPSession::InternalCreate(class RTPSessionParams const &)" (?InternalCreate@RTPSession@@AAEHABVRTPSessionParams@@@Z) ConsoleServer error LNK2019: riferimento al simbolo esterno "public: bool __thiscall JThread::IsRunning(void)" (?IsRunning@JThread@@QAE_NXZ) non risolto nella funzione "public: int __thiscall RTPPollThread::Start(class RTPTransmitter *)" (?Start@RTPPollThread@@QAEHPAVRTPTransmitter@@@Z) ConsoleClient error LNK2019: riferimento al simbolo esterno "public: bool __thiscall JThread::IsRunning(void)" (?IsRunning@JThread@@QAE_NXZ) non risolto nella funzione "public: int __thiscall RTPPollThread::Start(class RTPTransmitter *)" (?Start@RTPPollThread@@QAEHPAVRTPTransmitter@@@Z) ConsoleServer error LNK2019: riferimento al simbolo esterno "public: __thiscall JThread::JThread(void)" (??0JThread@@QAE@XZ) non risolto nella funzione "public: __thiscall RTPPollThread::RTPPollThread(class RTPSession &,class RTCPScheduler &)" (??0RTPPollThread@@QAE@AAVRTPSession@@AAVRTCPScheduler@@@Z) ConsoleClient error LNK2019: riferimento al simbolo esterno "public: __thiscall JThread::JThread(void)" (??0JThread@@QAE@XZ) non risolto nella funzione "public: __thiscall RTPPollThread::RTPPollThread(class RTPSession &,class RTCPScheduler &)" (??0RTPPollThread@@QAE@AAVRTPSession@@AAVRTCPScheduler@@@Z) ConsoleServer error LNK2019: riferimento al simbolo esterno "public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ) non risolto nella funzione "public: __thiscall RTPUDPv4Transmitter::RTPUDPv4Transmitter(class RTPMemoryManager *)" (??0RTPUDPv4Transmitter@@QAE@PAVRTPMemoryManager@@@Z) ConsoleClient error LNK2019: riferimento al simbolo esterno "public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ) non risolto nella funzione "public: __thiscall RTPUDPv4Transmitter::RTPUDPv4Transmitter(class RTPMemoryManager *)" (??0RTPUDPv4Transmitter@@QAE@PAVRTPMemoryManager@@@Z) ConsoleServer error LNK2019: riferimento al simbolo esterno "public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ) non risolto nella funzione "public: __thiscall RTPSession::RTPSession(class RTPMemoryManager *)" (??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z) ConsoleClient error LNK2019: riferimento al simbolo esterno "public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ) non risolto nella funzione "public: __thiscall RTPSession::RTPSession(class RTPMemoryManager *)" (??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z) ConsoleServer error LNK2019: riferimento al simbolo esterno "protected: void __thiscall JThread::ThreadStarted(void)" (?ThreadStarted@JThread@@IAEXXZ) non risolto nella funzione "private: virtual void * __thiscall RTPPollThread::Thread(void)" (?Thread@RTPPollThread@@EAEPAXXZ) ConsoleClient error LNK2019: riferimento al simbolo esterno "protected: void __thiscall JThread::ThreadStarted(void)" (?ThreadStarted@JThread@@IAEXXZ) non risolto nella funzione "private: virtual void * __thiscall RTPPollThread::Thread(void)" (?Thread@RTPPollThread@@EAEPAXXZ) ConsoleServer error LNK2019: riferimento al simbolo esterno "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::operator+(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??Hstd@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@0@Z) non risolto nella funzione "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl RTPGetErrorString(int)" (?RTPGetErrorString@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) ConsoleClient error LNK2019: riferimento al simbolo esterno "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::operator+(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??Hstd@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@0@Z) non risolto nella funzione "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl RTPGetErrorString(int)" (?RTPGetErrorString@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) ConsoleServer error LNK2019: riferimento al simbolo esterno "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (__imp_??6std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z) non risolto nella funzione "public: void __thiscall RTPPollThread::Stop(void)" (?Stop@RTPPollThread@@QAEXXZ) ConsoleClient error LNK2019: riferimento al simbolo esterno "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (__imp_??6std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z) non risolto nella funzione "public: void __thiscall RTPPollThread::Stop(void)" (?Stop@RTPPollThread@@QAEXXZ) ConsoleServer error LNK2019: riferimento al simbolo esterno "__declspec(dllimport) bool __cdecl std::operator==(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??8std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z) non risolto nella funzione "public: virtual int __thiscall RTPUDPv4Transmitter::GetLocalHostName(unsigned char *,unsigned int *)" (?GetLocalHostName@RTPUDPv4Transmitter@@UAEHPAEPAI@Z) ConsoleClient error LNK2019: riferimento al simbolo esterno "__declspec(dllimport) bool __cdecl std::operator==(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??8std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z) non risolto nella funzione "public: virtual int __thiscall RTPUDPv4Transmitter::GetLocalHostName(unsigned char *,unsigned int *)" (?GetLocalHostName@RTPUDPv4Transmitter@@UAEHPAEPAI@Z) ConsoleServer error LNK2019: riferimento al simbolo esterno "__declspec(dllimport) bool __cdecl std::operator<(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??Mstd@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z) non risolto nella funzione "public: void __thiscall std::list<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >::merge(class std::list<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > &)" (?merge@?$list@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QAEXAAV12@@Z) ConsoleClient error LNK2019: riferimento al simbolo esterno "__declspec(dllimport) bool __cdecl std::operator<(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??Mstd@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z) non risolto nella funzione "public: void __thiscall std::list<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >::merge(class std::list<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > &)" (?merge@?$list@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QAEXAAV12@@Z) ConsoleServer error LNK2001: simbolo esterno "public: virtual __thiscall JThread::~JThread(void)" (??1JThread@@UAE@XZ) non risolto ConsoleClient error LNK2001: simbolo esterno "public: virtual __thiscall JThread::~JThread(void)" (??1JThread@@UAE@XZ) non risolto ConsoleServer error LNK2001: simbolo esterno "public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ) non risolto ConsoleServer error LNK2001: simbolo esterno "public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ) non risolto ConsoleClient error LNK2001: simbolo esterno "public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ) non risolto ConsoleClient error LNK2001: simbolo esterno "public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ) non risolto ConsoleServer error LNK2001: simbolo esterno "public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ) non risolto ConsoleServer error LNK2001: simbolo esterno "public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ) non risolto ConsoleClient error LNK2001: simbolo esterno "public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ) non risolto ConsoleClient error LNK2001: simbolo esterno "public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ) non risolto ConsoleServer error LNK2001: simbolo esterno "public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ) non risolto ConsoleServer error LNK2001: simbolo esterno "public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ) non risolto ConsoleClient error LNK2001: simbolo esterno "public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ) non risolto ConsoleClient error LNK2001: simbolo esterno "public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ) non risolto ConsoleServer error LNK2001: simbolo esterno "public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ) non risolto ConsoleClient error LNK2001: simbolo esterno "public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ) non risolto ConsoleServer error LNK2001: simbolo esterno "public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ) non risolto ConsoleServer error LNK2001: simbolo esterno "public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ) non risolto ConsoleServer error LNK2001: simbolo esterno "public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ) non risolto ConsoleClient error LNK2001: simbolo esterno "public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ) non risolto ConsoleClient error LNK2001: simbolo esterno "public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ) non risolto ConsoleClient error LNK2001: simbolo esterno "public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ) non risolto Help!!!! ![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Ma questi JThread e JMutex ci sono nella distribuzione ? Ad occhio sono classi multipiattaforma per il supporto a thread e mutex...
Edit: ecco qui JMutex...google rulez ![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
In pratica devi compilare quello che ti ho linkato ed ottenere i file .lib da linkare tramite le opzioni di visual studio...
|
![]() |
![]() |
![]() |
#4 |
Junior Member
Iscritto dal: Feb 2006
Messaggi: 4
|
Salve cionci, prima di tutto grazie mille per la risposta, jthread è una libreria per l'utilizzo dei thread nella libreria jrtplib, quindi ho prima compilato jthread.lib poi ho compilato (includendo nella path di linking jthread.lib) creando jrtplib.lib anche se con 33 warning nel Linking e Vabbe...
Poi nell' esempio Consolle mi da nel Linking quel macello, ora sto provando ad includere manualmente librerie e .h, vediamo un pò se va! tu che dici? P.S. nella tua risposta precedente nn funziona il Link! Grazie Ancora!!! |
![]() |
![]() |
![]() |
#5 | |
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Quote:
|
|
![]() |
![]() |
![]() |
#6 |
Junior Member
Iscritto dal: Feb 2006
Messaggi: 4
|
Ho già provato :<, ma pare che mi da sempre gli stessi errori!!
Il problema potrebbe risiedere nel fatto che le librerie jrtplib.lib e jthread.lib sono compilate in visual c++ 6 e il Progetto Console è scritto in .net??? Tu che dici? ![]() |
![]() |
![]() |
![]() |
#7 |
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Non ne ho idea, non conosco .Net...
|
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 02:17.