与openssl兼容的应用程序在Visual Studio 2005中编译时出现错误 [英] Application compatible with openssl giving error while compiled in visual studio 2005

查看:113
本文介绍了与openssl兼容的应用程序在Visual Studio 2005中编译时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建wpa_supplicant,该文件在Visual Studio 2005上引用了openssl头文件x509v3.h.而我在构建编译器时,遇到的是x509v3.h头文件,并发现很多错误.有人可以帮我吗?有任何Bosy面对此错误.
我已经安装了openssl 1.0.1C最新版本的PC.

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(192):错误C2059:语法错误:''(''

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(200):错误C2059:语法错误:``类型''

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(204):错误C2059:语法错误:''}''

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(205):错误C2059:语法错误:''}''

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(211):错误C2061:语法错误:标识符``GENERAL_NAME''

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(212):错误C2059:语法错误:''}''

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(231):错误C2059:语法错误:''(''

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(232):错误C2059:语法错误:''}''

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(249):错误C2061:语法错误:标识符``DIST_POINT_NAME''

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(253):错误C2059:语法错误:''}''

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(323):错误C2061:语法错误:标识符``GENERAL_NAME''

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(326):错误C2059:语法错误:''}''

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(358):错误C2061:语法错误:标识符``DIST_POINT_NAME''

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(364):错误C2059:语法错误:''}''

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(524):错误C2143:语法错误:``*''之前缺少``{''

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(524):错误C2143:语法错误:在``*''之前缺少``)''

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(524):错误C2143:语法错误:``*''之前缺少``{''

1> D:\ Interworking \ wpa_supplicant-1.0.tar \ wpa_supplicant-1.0 \ wpa_supplicant-1.0 \ src \ tls \ x509v3.h(524):错误C2059:语法错误:)"

I am trying to build wpa_supplicant which is referencing openssl header file x509v3.h on Visual studio 2005. while i am building compiler hitting x509v3.h header file and finding hell lot of errors. Can anybody please help me. Have any bosy face this error.
I have installed openssl 1.0.1C latest version PC.

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(192) : error C2059: syntax error : ''(''

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(200) : error C2059: syntax error : ''type''

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(204) : error C2059: syntax error : ''}''

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(205) : error C2059: syntax error : ''}''

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(211) : error C2061: syntax error : identifier ''GENERAL_NAME''

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(212) : error C2059: syntax error : ''}''

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(231) : error C2059: syntax error : ''(''

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(232) : error C2059: syntax error : ''}''

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(249) : error C2061: syntax error : identifier ''DIST_POINT_NAME''

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(253) : error C2059: syntax error : ''}''

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(323) : error C2061: syntax error : identifier ''GENERAL_NAME''

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(326) : error C2059: syntax error : ''}''

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(358) : error C2061: syntax error : identifier ''DIST_POINT_NAME''

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(364) : error C2059: syntax error : ''}''

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(524) : error C2143: syntax error : missing ''{'' before ''*''

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(524) : error C2143: syntax error : missing '')'' before ''*''

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(524) : error C2143: syntax error : missing ''{'' before ''*''

1>D:\Interworking\wpa_supplicant-1.0.tar\wpa_supplicant-1.0\wpa_supplicant-1.0\src\tls\x509v3.h(524) : error C2059: syntax error : '')''

推荐答案

亲爱的所有人,
实际上,该应用程序具有在未定义XNAME_509(509.h)的头文件.编译源代码时不需要这样做.并且它与wincrypt.h头文件中的系统定义的XNAME_509冲突.因此,我在使用的同一头文件中未定义x509v3.h.在x509v3.h中,它们包括未定义的"509.h".一些如何不反映
Dear All,
Actually that application having header file where it is undefining the XNAME_509(509.h). this is not taking while compiling the source code. and it is conflicting with the system defined XNAME_509 in wincrypt.h header file. So i have undefined in the same header file which i am using that is x509v3.h. In x509v3.h they have included "509.h" where undefines are there. Some how its not reflecting


这篇关于与openssl兼容的应用程序在Visual Studio 2005中编译时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆