jrtplib 3.7.1 中的例子example1.cpp编译报错.
jrtplib.lib和jthread.lib编译成功了,也安装了sp6补丁,也参考的很多文章,例如下面的文章.
错误信息在最下面
=============================================================
参考的文章
研究了很多文章,自己终于搞定了,总结一下。 JRTPLIB库是一个RTP协议的开源库,使用这套库文件,我们可以创建端到端的RTP连接,实现数据的实时传输。RTP是实时传输协议的简称。压缩包可以从这里获得:http://www.bairuitech.com/upimg/soft/jrtplib-3.7.1.rar或者http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib。下载jrtplib-3.7.1.rar后,首先将其解压到一个临时文件夹中,然后开始后续工作。首先需要强调的是,jrtplib是一个库而不是应用程序,编译后我们获得的是.lib文件。这个文件是用来实现RTP协议的,意义和我们在写WIN32程序时用到的kernel.lib一样。1、解压后的文件夹中包含两个目录,jrtplib-3.7.1和jthread-1.2.1,打开这两个目录后我们可以看到下面又有两个同名的目录,为了后面能顺利编译,我们把同名目录下的文件全部考到上一级目录中,就是说把c:\jrtplib-3.7.1\jrtplib-3.7.1\*.* 复制到c:\jrtplib-3.7.1\。同理,把c:\jthread-1.2.1\jthread-1.2.1\*.* 复制到c:\jthread-1.2.1\。完成上述步骤后我们就可以开始编译库文件了。2、编译jrtplib.lib和jthread.lib需要注意VC6要求安装Vs6sp6,在编译jrtplib.lib和jthread.lib前,在project——settings——C/C++——Code generation:use run-time library中,对于debug,选择:Debug Multithreaded DLL,对于release,则选择:Multithreaded DLL。3、首先编译jthread库,然后将jthread-1.2.1\src内的"jmutex.h"和"jthread.h"两个头文件放入jrtplib-3.7.1\src目录下,然后将jrtplib-3.7.1\src文件夹下所有头文件中的<jmutex.h>和<jthread.h>语句修改为"jmutex.h"和"jthread.h",需要修改的文件为rtpudpv4transmitter.h、rtpsession.h和rtppollthread.h。编译时注意编译方式和jthread.lib一致,并且设置路径包含jtrplib所有头文件,路径设置方法:工具--选项--目录--include files.4、将编译生成的jthread.lib和jrtplib.lib拷贝到系统目录:C:\Program Files\Microsoft Visual Studio\VC98\Lib下。5、那些example的编译,需要在cpp文件开头加上:#pragma comment(lib, "jrtplib.lib")#pragma comment(lib, "jthread.lib")#pragma comment(lib, "WS2_32.lib")//pragma的作用自己上网查吧编译的时候,同样选择编译选项:Debug Multithreaded DLL(对于debug);Multithreaded DLL(对于release)。Project->Settings->Link中Object/library modules:添加jthread.lib jrtplib.lib ws2_32.lib
============================================

解决方案 »

  1.   

    --------------------Configuration: ConsoleServer - Win32 Debug--------------------
    Compiling...
    example1.cpp
    h:\program files\microsoft visual studio\vc98\include\list(153) : warning C4786: 'std::reverse_bidirectional_iterator<std::list<RTPCollisionList::AddressAndTime,std::allocator<RTPCollisionList::AddressAndTime> >::const_iterator,RTPCollisionList::Add
    ressAndTime,RTPCollisionList::AddressAndTime const &,RTPCollisionList::AddressAndTime const *,int>' : identifier was truncated to '255' characters in the debug information
            h:\program files\microsoft visual studio\vc98\include\list(151) : while compiling class-template member function '__thiscall std::list<RTPCollisionList::AddressAndTime,std::allocator<RTPCollisionList::AddressAndTime> >::~std::list<RTPCollisi
    onList::AddressAndTime,std::allocator<RTPCollisionList::AddressAndTime> >(void)'
    h:\program files\microsoft visual studio\vc98\include\list(131) : warning C4786: 'std::reverse_bidirectional_iterator<std::list<RTCPSDESInfo::SDESPrivateItem *,std::allocator<RTCPSDESInfo::SDESPrivateItem *> >::const_iterator,RTCPSDESInfo::SDESPriva
    teItem *,RTCPSDESInfo::SDESPrivateItem * const &,RTCPSDESInfo::SDESPrivateItem * const *,int>' : identifier was truncated to '255' characters in the debug information
            h:\program files\microsoft visual studio\vc98\include\list(129) : while compiling class-template member function '__thiscall std::list<RTCPSDESInfo::SDESPrivateItem *,std::allocator<RTCPSDESInfo::SDESPrivateItem *> >::std::list<RTCPSDESInfo:
    :SDESPrivateItem *,std::allocator<RTCPSDESInfo::SDESPrivateItem *> >(const std::allocator<RTCPSDESInfo::SDESPrivateItem *> &)'
    h:\program files\microsoft visual studio\vc98\include\list(131) : warning C4786: 'std::reverse_bidirectional_iterator<std::list<RTCPCompoundPacketBuilder::Buffer,std::allocator<RTCPCompoundPacketBuilder::Buffer> >::const_iterator,RTCPCompoundPacketB
    uilder::Buffer,RTCPCompoundPacketBuilder::Buffer const &,RTCPCompoundPacketBuilder::Buffer const *,int>' : identifier was truncated to '255' characters in the debug information
            h:\program files\microsoft visual studio\vc98\include\list(129) : while compiling class-template member function '__thiscall std::list<RTCPCompoundPacketBuilder::Buffer,std::allocator<RTCPCompoundPacketBuilder::Buffer> >::std::list<RTCPCompo
    undPacketBuilder::Buffer,std::allocator<RTCPCompoundPacketBuilder::Buffer> >(const std::allocator<RTCPCompoundPacketBuilder::Buffer> &)'
    h:\program files\microsoft visual studio\vc98\include\list(131) : warning C4786: 'std::reverse_bidirectional_iterator<std::list<RTCPCompoundPacketBuilder::SDESSource *,std::allocator<RTCPCompoundPacketBuilder::SDESSource *> >::iterator,RTCPCompoundP
    acketBuilder::SDESSource *,RTCPCompoundPacketBuilder::SDESSource * &,RTCPCompoundPacketBuilder::SDESSource * *,int>' : identifier was truncated to '255' characters in the debug information
            h:\program files\microsoft visual studio\vc98\include\list(129) : while compiling class-template member function '__thiscall std::list<RTCPCompoundPacketBuilder::SDESSource *,std::allocator<RTCPCompoundPacketBuilder::SDESSource *> >::std::li
    st<RTCPCompoundPacketBuilder::SDESSource *,std::allocator<RTCPCompoundPacketBuilder::SDESSource *> >(const std::allocator<RTCPCompoundPacketBuilder::SDESSource *> &)'
    h:\program files\microsoft visual studio\vc98\include\list(131) : warning C4786: 'std::reverse_bidirectional_iterator<std::list<RTCPCompoundPacketBuilder::SDESSource *,std::allocator<RTCPCompoundPacketBuilder::SDESSource *> >::const_iterator,RTCPCom
    poundPacketBuilder::SDESSource *,RTCPCompoundPacketBuilder::SDESSource * const &,RTCPCompoundPacketBuilder::SDESSource * const *,int>' : identifier was truncated to '255' characters in the debug information
            h:\program files\microsoft visual studio\vc98\include\list(129) : while compiling class-template member function '__thiscall std::list<RTCPCompoundPacketBuilder::SDESSource *,std::allocator<RTCPCompoundPacketBuilder::SDESSource *> >::std::li
    st<RTCPCompoundPacketBuilder::SDESSource *,std::allocator<RTCPCompoundPacketBuilder::SDESSource *> >(const std::allocator<RTCPCompoundPacketBuilder::SDESSource *> &)'
    Linking...
      

  2.   

    jrtplib.lib(rtperrors.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtperrors.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtperrors.obj) : warning LNK4044: unrecognized option "alternatename:__imp_??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@0@Z=__imp_??Hstd@@YA?AV?$basic_string@DU?$
    char_traits@D@std@@V?$allocator@D@2@@0@ABV10@0@Z"; ignored
    jrtplib.lib(rtpsession.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtpsession.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtpsessionparams.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtpsessionparams.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtpipv4address.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtpipv4address.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtcppacketbuilder.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtcppacketbuilder.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtcpscheduler.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtcpscheduler.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtppacketbuilder.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtppacketbuilder.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtptimeutilities.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtptimeutilities.obj) : warning LNK4078: multiple ".CRT" sections found with different attributes (40300040)
    jrtplib.lib(rtpcollisionlist.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtpcollisionlist.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtpsources.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtpsources.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtpsessionsources.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtpsessionsources.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtpudpv4transmitter.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtpudpv4transmitter.obj) : warning LNK4044: unrecognized option "manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
    jrtplib.lib(rtpudpv4transmitter.obj) : warning LNK4044: unrecognized option "alternatename:__imp_??$?MDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z=__imp_??Mstd@@YA_NABV?$basic_str
    ing@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z"; ignored
      

  3.   

    参考:http://blog.csdn.net/scq2099yt/archive/2008/03/26/2219971.aspx
      

  4.   

    jrtplib 3.7.1 中的例子example1.cpp编译报错. 
    我发的1楼2楼的只是错误信息,求有这方面经验的达人指点,只要能解决问题,多少分都给.
      

  5.   

    试了一下,没什么问题,不过我都是用2008编译的
    1>------ Build started: Project: ConsoleServer, Configuration: Debug Win32 ------
    1>Compiling...
    1>ConsoleServer.cpp
    1>Linking...
    1>Embedding manifest...
    1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
    1>Copyright (C) Microsoft Corporation.  All rights reserved.
    1>Build log was saved at "file://c:\Documents and Settings\cofan\桌面\jrtplib-3.7.1\jrtplib-3.7.1\jrtplib-3.7.1\ConsoleServer\Debug\BuildLog.htm"
    1>ConsoleServer - 0 error(s), 0 warning(s)
    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
      

  6.   

    我用的VC++6.0调试的,估计是环境有问题,郁闷,我用VS2005编译不知道应该怎么设置..编译也通不过
      

  7.   

    用ZIP格式压缩,不然我接收不到,发那个VC6.0的,谢谢