编译 rsa 库时出现 LNK 错误
为什么我在尝试编译此 rsa 库时收到此 LNK 错误: http://www.efgh.com/software/rsa.txt 从 http://www.efgh.com/software/rsa.htm
mpuint.obj : error LNK2019: unresolved external symbol "void __cdecl numeric_overflow(void)" (?numeric_overflow@@YAXXZ) referenced in function "public: void __thiscall mpuint::operator=(class mpuint const &)" (??4mpuint@@QAEXABV0@@Z)
why am i getting this LNK error when trying to compile this rsa library:
http://www.efgh.com/software/rsa.txt
from
http://www.efgh.com/software/rsa.htm
mpuint.obj : error LNK2019: unresolved external symbol "void __cdecl numeric_overflow(void)" (?numeric_overflow@@YAXXZ) referenced in function "public: void __thiscall mpuint::operator=(class mpuint const &)" (??4mpuint@@QAEXABV0@@Z)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请在 MPUINT.CPP 中添加新函数:
问候,
Trung,
Please add new function in MPUINT.CPP:
Regards,
Trung,
因为您没有在链接器设置中指定库文件。库文件包含您在代码中使用的 API 的实际定义。在您的示例中,您包含了一个头文件,该文件以某种方式或在某处声明了具有以下签名的函数:
但您没有包含定义该函数的库。库在项目设置->中指定配置属性->链接器->输入-> Visual Studio 中的附加依赖项字段。
然后在该字段中指定与您使用的函数相对应的库文件。
Because you didn't specify a library file in your linker settings. A library file contains the actual definitions of the API's you are using in your code. In your example, you included a header file that somehow or somewhere declared a function with the following signature:
But you didn't include the library that defines the function. The library is specified in the project settings -> Configuration Properties -> Linker -> Input -> Additional Dependencies field in visual studio.
In that field you then specify the library file that corresponds to the function you used.
请注意:这个 RSA 库的性能不太好。
您可以尝试其他库(开源):
尊敬的,
Trung,
Please note: this RSA library performance is not so well.
You can try other libraries (open source):
Regard,
Trung,