在网上下载了个音频联网程序talkg726,编译的时候总是出现一个错误,如下:
--------------------Configuration: Talk2Me - Win32 Debug--------------------
Compiling...
RTPAppSession.cpp
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\talk2me\rtpappsession.cpp(4) : warning C4652: compiler option 'Generate Browser Info' inconsistent with precompiled header; current command-line option will override that de
fined in the precompiled header
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\jrtplib-3.4.0\src\rtpsources.h(160) : error C2440: 'specialization' : cannot convert from '' to 'int (__cdecl *)(const &)'
None of the functions with this name in scope match the target type
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\jrtplib-3.4.0\src\rtpsources.h(160) : error C2975: 'RTPKeyHashTable' : invalid template argument for 'GetIndex', constant expression expected
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\jrtplib-3.4.0\src\rtpkeyhashtable.h(92) : see declaration of 'RTPKeyHashTable'
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\jrtplib-3.4.0\src\rtpsources.h(160) : error C2079: 'sourcelist' uses undefined class 'RTPKeyHashTable<unsigned int const ,class RTPInternalSourceData *,0,8317>'
Talk2Me.cpp
……
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\jrtplib-3.4.0\src\rtpudpv4transmitter.h(210) : error C2440: 'specialization' : cannot convert from '' to 'int (__cdecl *)(const &)'
None of the functions with this name in scope match the target type
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\jrtplib-3.4.0\src\rtpudpv4transmitter.h(210) : error C2975: 'RTPKeyHashTable' : invalid template argument for 'GetIndex', constant expression expected
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\jrtplib-3.4.0\src\rtpkeyhashtable.h(92) : see declaration of 'RTPKeyHashTable'
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\jrtplib-3.4.0\src\rtpudpv4transmitter.h(210) : error C2079: 'acceptignoreinfo' uses undefined class 'RTPKeyHashTable<unsigned int const ,class RTPUDPv4Transmitter::PortInfo
*,0,8317>'
Generating Code...
执行 cl.exe 时出错.
Talk2Me.exe - 1 error(s), 0 warning(s)
--------------------Configuration: Talk2Me - Win32 Debug--------------------
Compiling...
RTPAppSession.cpp
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\talk2me\rtpappsession.cpp(4) : warning C4652: compiler option 'Generate Browser Info' inconsistent with precompiled header; current command-line option will override that de
fined in the precompiled header
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\jrtplib-3.4.0\src\rtpsources.h(160) : error C2440: 'specialization' : cannot convert from '' to 'int (__cdecl *)(const &)'
None of the functions with this name in scope match the target type
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\jrtplib-3.4.0\src\rtpsources.h(160) : error C2975: 'RTPKeyHashTable' : invalid template argument for 'GetIndex', constant expression expected
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\jrtplib-3.4.0\src\rtpkeyhashtable.h(92) : see declaration of 'RTPKeyHashTable'
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\jrtplib-3.4.0\src\rtpsources.h(160) : error C2079: 'sourcelist' uses undefined class 'RTPKeyHashTable<unsigned int const ,class RTPInternalSourceData *,0,8317>'
Talk2Me.cpp
……
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\jrtplib-3.4.0\src\rtpudpv4transmitter.h(210) : error C2440: 'specialization' : cannot convert from '' to 'int (__cdecl *)(const &)'
None of the functions with this name in scope match the target type
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\jrtplib-3.4.0\src\rtpudpv4transmitter.h(210) : error C2975: 'RTPKeyHashTable' : invalid template argument for 'GetIndex', constant expression expected
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\jrtplib-3.4.0\src\rtpkeyhashtable.h(92) : see declaration of 'RTPKeyHashTable'
c:\documents and settings\administrator\桌面\音频\talkg726\talkg726\talk2me\jrtplib-3.4.0\src\rtpudpv4transmitter.h(210) : error C2079: 'acceptignoreinfo' uses undefined class 'RTPKeyHashTable<unsigned int const ,class RTPUDPv4Transmitter::PortInfo
*,0,8317>'
Generating Code...
执行 cl.exe 时出错.
Talk2Me.exe - 1 error(s), 0 warning(s)
解决方案 »
- MVP连任,感谢大家
- 问一下网络模型的问题
- 学C++真是太辛苦了,啥都要学
- 安装visual studio 2005时遇到如下问题,请问各位大哥大姐要怎么解决呀?谢谢!
- vnc
- 请问硬盘一次读取或写入的最小单位是多少?BYTE? WORD? DWORD? 与机器字长有关吗?
- codeproject里有个statusbar扩展类,可以对每个panel设置不同的字体颜色.但我想动态地改变其文字类容,改怎么办?
- 本人想完成一个基本的矢量图形模块(内含图形基本操作)的组件,求相关资料(做过矢量图形组件的兄弟帮帮我,谢谢)
- 怎么样用VC写一个dbf文件
- 好奇怪的一个问题,急,在线等候
- DICOM图像的组合打印
- CRichEdit 怎么实现自动滚屏?
有出现了一个问题
编译能通过!但是创建程序的时候就
说是和G726解码有关系的 LINK错误。