如何构建 64 位版本的 Crypto++ dll?
我目前正在致力于将 crypto++ 库实现到 ac# 应用程序中。在 32 位下一切正常。 但是,当我尝试在 64 位中构建 C++ DLL 时,出现以下错误:
错误 1 错误 PRJ0019:工具从“执行自定义构建步骤”cryptop cryptopp 返回错误代码
然后,我将项目设置更改为从默认多字节以 Unicode 构建,并使其构建没有错误。但是,在使用 GetPowerUpSelfTestStatus()
时,安全检查将失败。
我已经用谷歌搜索了这个问题,显然这不是一个罕见的问题。然而,似乎没有人找到解决方案,或者至少没有分享它。
我能做些什么?
I'm currently working on implementing the crypto++ libs into a c# app. It's all working fine in 32 bit.
However when I tried to build the c++ DLL in 64 bit, I got this error:
Error 1 error PRJ0019: A tool returned an error code from "Performing Custom Build Step" cryptopp cryptopp
I then changed the project settings to build in Unicode from the default multibyte, and got it to build with no errors. However, it will then fail the safety check when using the GetPowerUpSelfTestStatus()
.
I've googled the heck out of this, and apparently this is not an uncommon problem. However no one seems to have found a solution, or at least hasn't shared it.
What can I do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题出在项目首选项下的自定义构建步骤选项。只需将主输出目录文件夹从“Win32”更改为“x64”,并将 x64 作为目标平台。 =/
The problem was with the custom build step options under the project preferences. Just change the leading output directory folder from 'Win32' to 'x64' with x64 as your target platform. =/