vs2012配置openssl出现错误,求解答

十一点火车 2015-01-10 02:21:51
在运行“nmake -f ms\ntdll.mak”命令是,出现了三个错误
1、.crypto\cversion.c<80> : error C2065:"cflags":未申明的标识符
2、.crypto\cversion.c<80> :warning C4047:"return","const char * "与“int”的间接级不同
3、NMAKE:fatalerror U1077:""D:\Program Files\Microsoft Uisual Studio 11.0\VC\BIN\c1.EXE ":返回代码“0x2” stop.
...全文
335 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
matrix_lhx 2015-01-13
  • 打赏
  • 举报
回复
我也遇到这个问题了,Google到的解决方法如下,应该是大小写的错误 I try to buld openssl-1.0.1k with Visual Studio... PERL Configure VC-WIN32... ms\do_nasm NMAKE -f ms\ntdll.mak and have one error: .\crypto\cversion.c(80) : error C2065: 'cflags' : undeclared identifier Simple patch: diff U3 a/openssl-1.0.1k/crypto/cversion.c b/openssl-1.0.1k/crypto/cversion.c --- a/openssl-1.0.1k/crypto/cversion.c Thu Jan 08 08:00:56 2015 +++ b/openssl-1.0.1k/crypto/cversion.c Thu Jan 08 10:16:03 2015 @@ -77,7 +77,7 @@ if (t == SSLEAY_CFLAGS) { #ifdef CFLAGS - return(cflags); + return(CFLAGS); #else return("compiler: information not available"); #endif
十一点火车 2015-01-12
  • 打赏
  • 举报
回复
问题已解决,我直接将crypto\cversion.c文件内的关于cflags段删除,然后编译通过,但不知会发生什么隐藏问题

37,744

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • WuKongSecurity@BOB
加入社区
  • 近7日
  • 近30日
  • 至今

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