looneyapurv / libjingle

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

NS_GINGLE_RAW undefined error #266

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. building jingle with call example together
2.
3.

What is the expected output? What do you see instead?
I got following link error:
rawtransport.obj : error LNK2001: unresolved external symbol "char const * 
const cricket::NS_GINGLE_RAW" (?NS_GINGLE_RAW@cricket@@3QBDB)
And I found that NS_GINGLE_RAW is used in rawtransport.cc but never defined.  

What version of the product are you using? On what operating system?
libjingle-0.6.6
VS 2010 and VS 2008
Win 7

Please provide any additional information below.

I checked early code and found that in r23 and before we have:
const std::string NS_GINGLE_RAW("http://www.google.com/transport/raw-udp");
Why is this definition disappeared? I know that NS_GINGLE_RAW is defined in 
constants.cc as an empty char[]. But why do we change it?

The most mystery thing is that jingle itself can be built successfully (and 
output jingle.lib). But when I combine the code of jingle and call example as 
one project, the error shows up.

Original issue reported on code.google.com by tangketa...@gmail.com on 26 Dec 2011 at 6:11

GoogleCodeExporter commented 9 years ago
The NS_GINGLE_RAW should be defined in the "talk/p2p/base/constants.h" file as 
the following:
185: extern const char NS_GINGLE_RAW[];

Are you seeing a different file? Please try to re-download to see if you still 
can repro this problem.

Original comment by jun...@google.com on 4 Jan 2012 at 12:16