pavlovski / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

compiling pcp_main.cc gives "undefined reference to typeinfo" errors.. #383

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile the pcp_main.cc (pcp fileshare example) like this

 g++ -g -Wall -DPOSIX -frtti -DEXPAT_RELATIVE_PATH -DFEATURE_ENABLE_SSL -DHAVE_OPENSSL_SSL_H=1 -I ../ pcp_main.cc ../talk/build/dbg/lib/libxmpphelp.a ../talk/build/dbg/lib/libjingle.a ../talk/build/dbg/lib/libexpat.a ../talk/build/dbg/lib/libsrtp.a  -lpthread -lssl

What is the expected output? What do you see instead?
expecting to compile pcp_main.cc, instead get this..

/tmp/cc1HTLcg.o:(.rodata._ZTI14CustomXmppPump[typeinfo for 
CustomXmppPump]+0x18): undefined reference to `typeinfo for XmppPump'
/tmp/cc1HTLcg.o:(.rodata._ZTIN7cricket18SessionManagerTaskE[typeinfo for 
cricket::SessionManagerTask]+0x8): undefined reference to `typeinfo for 
buzz::XmppTask'
/tmp/cc1HTLcg.o:(.rodata._ZTIN7cricket15SessionSendTaskE[typeinfo for 
cricket::SessionSendTask]+0x8): undefined reference to `typeinfo for 
buzz::XmppTask'
/tmp/cc1HTLcg.o:(.rodata._ZTI17AutoPortAllocator[typeinfo for 
AutoPortAllocator]+0x8): undefined reference to `typeinfo for 
cricket::HttpPortAllocator'
collect2: ld returned 1 exit status

What version of the product are you using? On what operating system?
using libjingle 0.6.14 and ubuntu 11.10

Please provide any additional information below.

Original issue reported on code.google.com by tejeshsm...@gmail.com on 11 Aug 2012 at 11:12

GoogleCodeExporter commented 9 years ago
1) open main.scons 
2) find posix section with Append call
3) Remove "-fno-rtti" flag from CXXFLAGS section
4) rebuild library

Original comment by g.korov...@gmail.com on 15 Aug 2012 at 4:27

GoogleCodeExporter commented 9 years ago

Original comment by juberti@google.com on 1 Jun 2013 at 5:01