[Live-devel] Using openRTSP in a script / batch file

Ross Finlayson finlayson at live555.com
Wed Oct 5 14:05:45 PDT 2011


Once you've made *any* changes to the supplied code - and that *especially* includes commenting out code to try to work around compiler/linker problems - then you can't expect any support on this mailing list.

Noone else has reported the compiler problems that you're seeing.  Perhaps you have out-of-date standard libraries and/or header files??

But in this case, "_strncasecmp" is defined in "liveMedia/include/RTSPCommon.hh".  Because you (I presume) have "__WIN32__" or "_WIN32" defined, that means that it's defined as "_strnicmp".

But note also the following code defined in "liveMedia/include/Media.hh":

// The following makes the Borland compiler happy:
#ifdef __BORLANDC__
#define _strnicmp strnicmp
#define fabsf(x) fabs(x)
#endif

Perhaps this is what you need (assuming that you also have "__BORLANDC__" defined)?


So, I suggest adding the following:

#ifndef _MEDIA_HH
#include <Media.hh>
#endif

to the top of "liveMedia/include/RTSPCommon.hh".  That might help you.

In any case, stop arbitrarily commenting out code, if you expect it to work.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111005/9ef81ac1/attachment.html>


More information about the live-devel mailing list