请教 加密函数库libTomCrypt问题

Victor_Dinho 2008-03-28 10:20:47
  在使用libtomcrypt进行ecc加密的时候,编译出现以下错误:
--------------------Configuration: makekey - Win32 Debug--------------------
Compiling...
makekey.cpp
c:\program files\microsoft visual studio\vc98\include\wchar.h(700) : error C2733: second C linkage of overloaded function 'wmemchr' not allowed
c:\program files\microsoft visual studio\vc98\include\wchar.h(699) : see declaration of 'wmemchr'
c:\program files\microsoft visual studio\vc98\include\wchar.h(702) : error C2733: second C linkage of overloaded function 'wcschr' not allowed
c:\program files\microsoft visual studio\vc98\include\wchar.h(701) : see declaration of 'wcschr'
c:\program files\microsoft visual studio\vc98\include\wchar.h(704) : error C2733: second C linkage of overloaded function 'wcspbrk' not allowed
c:\program files\microsoft visual studio\vc98\include\wchar.h(703) : see declaration of 'wcspbrk'
c:\program files\microsoft visual studio\vc98\include\wchar.h(706) : error C2733: second C linkage of overloaded function 'wcsrchr' not allowed
c:\program files\microsoft visual studio\vc98\include\wchar.h(705) : see declaration of 'wcsrchr'
c:\program files\microsoft visual studio\vc98\include\wchar.h(708) : error C2733: second C linkage of overloaded function 'wcsstr' not allowed
c:\program files\microsoft visual studio\vc98\include\wchar.h(707) : see declaration of 'wcsstr'
Error executing cl.exe.
makekey.obj - 5 error(s), 0 warning(s)

我上网查了一下,这是因为C语言不支持重载引起的。但我没有找到解决的方法。

请问有用过libtomcrypt函数库的人可以帮忙解决这个问题吗?我万分感激。

我的email是dinho.victor@gmail.com,QQ号码是479326416。

...全文
374 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
yzp3646 2009-08-12
  • 打赏
  • 举报
回复
把.c文件的后缀都改成.cpp就好了,还有把
#ifdef __cplusplus
extern "C" {
#endif
都去掉

4,451

社区成员

发帖
与我相关
我的任务
社区描述
云计算 云安全相关讨论
社区管理员
  • 云安全社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧