[Live-devel] Help with link error

Roland roland at wingmanteam.com
Wed Aug 6 11:35:31 PDT 2008


Hi Melvin

 

Add liveMedia\H263plusVideoRTPSource.cpp and liveMedia\H264VideoFileSink.cpp
to your project. That should do it. Similar to like you added "Locale.cpp".

 

During linking, the Linker will gather all the object files (generated by
compiling C or C++ source code) and all the libraries and do a cross-check
against all symbols. E.g. if you call a function Foo() in your code, the
compiler only sees the signature of the function in some header file:
"foo.h: void Foo(void);" There is no code there, just the information on how
to call it. During the linking step, the linker will resolve the references
and look for compiled code for Foo(), which is either in another object
file, or in a library (which is just a 'zip' of a bunch of object files).

 

cu

roland

 

From: live-devel-bounces at ns.live555.com
[mailto:live-devel-bounces at ns.live555.com] On Behalf Of Melvin_Raj
Sent: Tuesday, August 05, 2008 7:22 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] Help with link error

 

Hello..thank you for your help.I managed to reduce the errors down to 3!! J 

 

1>------ Build started: Project: rtsp, Configuration: Debug Win32 ------

1>Compiling...

1>Locale.cpp

1>Linking...

1>playCommon.obj : error LNK2019: unresolved external symbol "public: static
class H264VideoFileSink * __cdecl H264VideoFileSink::createNew(class
UsageEnvironment &,char const *,unsigned int,unsigned int)"
(?createNew at H264VideoFileSink@@SAPAV1 at AAVUsageEnvironment@@PBDII at Z)
referenced in function _main

1>liveMedia.lib(MediaSession.obj) : error LNK2019: unresolved external
symbol "public: static class H263plusVideoRTPSource * __cdecl
H263plusVideoRTPSource::createNew(class UsageEnvironment &,class Groupsock
*,unsigned char,unsigned int)"
(?createNew at H263plusVideoRTPSource@@SAPAV1 at AAVUsageEnvironment@@PAVGroupsock
@@EI at Z) referenced in function "public: unsigned int __thiscall
MediaSubsession::initiate(int)" (?initiate at MediaSubsession@@QAEIH at Z)

1>C:\Documents and Settings\mp74294\My Documents\Visual Studio
2005\Projects\rtsp\Debug\rtsp.exe : fatal error LNK1120: 2 unresolved
externals

1>Build log was saved at "file://c:\Documents and Settings\mp74294\My
Documents\Visual Studio 2005\Projects\rtsp\rtsp\Debug\BuildLog.htm"

1>rtsp - 3 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

As you said, I tried doin a search for the H264VideoFileSink but it all in
the livemedia.hh and also H264VideoFileSink.hh(I have included then in the
preprocessor)..how do I go about corercting this error??and btw, once I
compile openrtsp, will I be able to receive,play,records the video streams
from mpegstreamer?? 

 

Thank You soo much for your time in helping J God blesss.

 

From: live-devel-bounces at ns.live555.com
[mailto:live-devel-bounces at ns.live555.com] On Behalf Of Roland
Sent: Wednesday, August 06, 2008 2:24 AM
To: 'LIVE555 Streaming Media - development & use'
Subject: Re: [Live-devel] Help with link error

 

Hi Melvin

 

Do a FindInFiles for the symbols that aren't being resolved, e.g.
"tunnelOverHTTPPortNum" or "statusCode". Then figure out if that source file
where these variables are being defined is included in the compilation of
the .LIB or the final .EXE. Add the corresponding source file to one of
those projects and recompile. E.g. for the "tunnelOverHTTPPortNum" variable,
you'll find "extern" references and one real declaration in
testProgs\playCommon.cpp. Add playCommon.cpp to resolve this issue.

 

Same goes for the other unresolved symbols. e.g. class "Locale" is defined
in "liveMedia\Locale.cpp"...

 

cu

Roland

 

From: live-devel-bounces at ns.live555.com
[mailto:live-devel-bounces at ns.live555.com] On Behalf Of Melvin_Raj
Sent: Tuesday, August 05, 2008 3:04 AM
To: live-devel at lists.live555.com
Subject: [Live-devel] Help with link error

 

hello....im new to this forum...im trying to build live555's test prog,
specificly the openrtsp...i am able to build the mpegsender,mp3sender and
receiver respectively witout any errors but when i try to build openrtsp, i
get the following errors:

1>------ Rebuild All started: Project: rtsp, Configuration: Debug Win32
------
1>Deleting intermediate and output files for project 'rtsp', configuration
'Debug|Win32'
1>Compiling...
1>openRTSP.cpp
1>Compiling manifest to resources...
1>Linking...
1>openRTSP.obj : error LNK2001: unresolved external symbol "unsigned short
tunnelOverHTTPPortNum" (?tunnelOverHTTPPortNum@@3GA)
1>openRTSP.obj : error LNK2001: unresolved external symbol "unsigned int
statusCode" (?statusCode@@3IA)
1>openRTSP.obj : error LNK2001: unresolved external symbol "double duration"
(?duration@@3NA)
1>openRTSP.obj : error LNK2001: unresolved external symbol "double scale"
(?scale@@3NA)
1>openRTSP.obj : error LNK2001: unresolved external symbol "double
initialSeekTime" (?initialSeekTime@@3NA)
1>liveMedia.lib(RTSPClient.obj) : error LNK2019: unresolved external symbol
"public: virtual __thiscall Locale::~Locale(void)" (??1Locale@@UAE at XZ)
referenced in function "char * __cdecl createScaleString(float,float)"
(?createScaleString@@YAPADMM at Z)
1>liveMedia.lib(MediaSession.obj) : error LNK2001: unresolved external
symbol "public: virtual __thiscall Locale::~Locale(void)"
(??1Locale@@UAE at XZ)
1>liveMedia.lib(RTSPCommon.obj) : error LNK2001: unresolved external symbol
"public: virtual __thiscall Locale::~Locale(void)" (??1Locale@@UAE at XZ)
1>liveMedia.lib(RTSPClient.obj) : error LNK2019: unresolved external symbol
"public: __thiscall Locale::Locale(char const *,int)"
(??0Locale@@QAE at PBDH@Z) referenced in function "char * __cdecl
createScaleString(float,float)" (?createScaleString@@YAPADMM at Z)
1>liveMedia.lib(MediaSession.obj) : error LNK2001: unresolved external
symbol "public: __thiscall Locale::Locale(char const *,int)"
(??0Locale@@QAE at PBDH@Z)
1>liveMedia.lib(RTSPCommon.obj) : error LNK2001: unresolved external symbol
"public: __thiscall Locale::Locale(char const *,int)"
(??0Locale@@QAE at PBDH@Z)
1>liveMedia.lib(MediaSession.obj) : error LNK2019: unresolved external
symbol "public: static class H263plusVideoRTPSource * __cdecl
H263plusVideoRTPSource::createNew(class UsageEnvironment &,class Groupsock
*,unsigned char,unsigned int)"
(?createNew at H263plusVideoRTPSource@@SAPAV1 at AAVUsag
eEnvironment@@PAVGroupsock@@EI at Z) referenced in function "public: unsigned
int __thiscall MediaSubsession::initiate(int)"
(?initiate at MediaSubsession@@QAEIH at Z)
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main
referenced in function ___tmainCRTStartup
1>C:\Documents and Settings\mp74294\My Documents\Visual Studio
2005\Projects\rtsp\Debug\rtsp.exe : fatal error LNK1120: 9 unresolved
externals
1>Build log was saved at "file://c:\Documents and Settings\mp74294\My
Documents\Visual Studio 2005\Projects\rtsp\rtsp\Debug\BuildLog.htm"
1>rtsp - 14 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped 

i've already added the required lib: wsock32.lib BasicUsageEnvironment.lib
groupsock.lib liveMedia.lib UsageEnvironment.lib

any help in pointing me towards the proper direction will be appreciated
http://www.gidforums.com/images/gid/smilies/icon_smile.gifthank you in
advance....God bless...

ps: im trying to build an rtp receiver that will be able to play streaming
files from a server...

 

  _____  

DISCLAIMER:
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.

 

  _____  

DISCLAIMER:
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.

 

  _____  

DISCLAIMER:
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080806/f1d69d0d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 174 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080806/f1d69d0d/attachment-0001.gif>


More information about the live-devel mailing list