INET_E_INVALID_URL macro redefinition

330 views
Skip to first unread message

Tamer El Nashar

unread,
Jul 7, 2012, 7:36:58 AM7/7/12
to wx-users
wx: 2.9.4 (09/06/2012)
ide: vs 2008
os: Win7 64-bit

Hi,

Recently after upgrading to wx 2.9.4 I started receiving a bunch of the following warnings throughout projects that required wxWidgets. These warnings obviously never appeared with previous version of wxWidgets, in these same projects. I tried re-arranging my headers to make sure the wx headers came after the windows standard headers, but for some reason I still keep getting the warnings. I noticed from a comment in the file listed below (missing.h) that these definitions seem to be included/required for vc6 compilers. Any chance we can get these definitions surrounded by an if defined vc6? I have yet to replicate them in a sample. Thank you.

Tamer El Nashar
VRSonic, Inc.


warning C4005: 'INET_E_INVALID_URL' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(547) : see previous definition of 'INET_E_INVALID_URL'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(555) : warning C4005: 'INET_E_NO_SESSION' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(551) : see previous definition of 'INET_E_NO_SESSION'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(556) : warning C4005: 'INET_E_CANNOT_CONNECT' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(555) : see previous definition of 'INET_E_CANNOT_CONNECT'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(557) : warning C4005: 'INET_E_RESOURCE_NOT_FOUND' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(559) : see previous definition of 'INET_E_RESOURCE_NOT_FOUND'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(558) : warning C4005: 'INET_E_OBJECT_NOT_FOUND' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(563) : see previous definition of 'INET_E_OBJECT_NOT_FOUND'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(559) : warning C4005: 'INET_E_DATA_NOT_AVAILABLE' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(567) : see previous definition of 'INET_E_DATA_NOT_AVAILABLE'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(560) : warning C4005: 'INET_E_DOWNLOAD_FAILURE' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(571) : see previous definition of 'INET_E_DOWNLOAD_FAILURE'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(561) : warning C4005: 'INET_E_AUTHENTICATION_REQUIRED' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(575) : see previous definition of 'INET_E_AUTHENTICATION_REQUIRED'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(562) : warning C4005: 'INET_E_NO_VALID_MEDIA' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(579) : see previous definition of 'INET_E_NO_VALID_MEDIA'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(563) : warning C4005: 'INET_E_CONNECTION_TIMEOUT' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(583) : see previous definition of 'INET_E_CONNECTION_TIMEOUT'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(564) : warning C4005: 'INET_E_INVALID_REQUEST' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(587) : see previous definition of 'INET_E_INVALID_REQUEST'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(565) : warning C4005: 'INET_E_UNKNOWN_PROTOCOL' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(591) : see previous definition of 'INET_E_UNKNOWN_PROTOCOL'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(566) : warning C4005: 'INET_E_SECURITY_PROBLEM' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(595) : see previous definition of 'INET_E_SECURITY_PROBLEM'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(567) : warning C4005: 'INET_E_CANNOT_LOAD_DATA' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(599) : see previous definition of 'INET_E_CANNOT_LOAD_DATA'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(568) : warning C4005: 'INET_E_CANNOT_INSTANTIATE_OBJECT' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(603) : see previous definition of 'INET_E_CANNOT_INSTANTIATE_OBJECT'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(569) : warning C4005: 'INET_E_INVALID_CERTIFICATE' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(631) : see previous definition of 'INET_E_INVALID_CERTIFICATE'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(570) : warning C4005: 'INET_E_REDIRECT_FAILED' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(611) : see previous definition of 'INET_E_REDIRECT_FAILED'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(571) : warning C4005: 'INET_E_REDIRECT_TO_DIR' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(615) : see previous definition of 'INET_E_REDIRECT_TO_DIR'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(572) : warning C4005: 'INET_E_CANNOT_LOCK_REQUEST' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(619) : see previous definition of 'INET_E_CANNOT_LOCK_REQUEST'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(573) : warning C4005: 'INET_E_USE_EXTEND_BINDING' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(623) : see previous definition of 'INET_E_USE_EXTEND_BINDING'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(574) : warning C4005: 'INET_E_TERMINATED_BIND' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(627) : see previous definition of 'INET_E_TERMINATED_BIND'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(575) : warning C4005: 'INET_E_ERROR_FIRST' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(543) : see previous definition of 'INET_E_ERROR_FIRST'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(576) : warning C4005: 'INET_E_CODE_DOWNLOAD_DECLINED' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(635) : see previous definition of 'INET_E_CODE_DOWNLOAD_DECLINED'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(577) : warning C4005: 'INET_E_RESULT_DISPATCHED' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(639) : see previous definition of 'INET_E_RESULT_DISPATCHED'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(578) : warning C4005: 'INET_E_CANNOT_REPLACE_SFP_FILE' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(643) : see previous definition of 'INET_E_CANNOT_REPLACE_SFP_FILE'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(580) : warning C4005: 'INET_E_CODE_INSTALL_SUPPRESSED' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(651) : see previous definition of 'INET_E_CODE_INSTALL_SUPPRESSED'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(582) : warning C4005: 'INET_E_CODE_INSTALL_BLOCKED_BY_HASH_POLICY' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(647) : see previous definition of 'INET_E_CODE_INSTALL_BLOCKED_BY_HASH_POLICY'
1>c:\program files\microsoft sdks\windows\v6.0a\include\urlmon.h(5835) : warning C4005: 'INET_E_QUERYOPTION_UNKNOWN' : macro redefinition
1>        c:\development\packages\wxwidgets\include\wx\msw\missing.h(607) : see previous definition of 'INET_E_QUERYOPTION_UNKNOWN'

Vadim Zeitlin

unread,
Jul 7, 2012, 8:24:33 AM7/7/12
to wx-u...@googlegroups.com
On Sat, 7 Jul 2012 13:36:58 +0200 Tamer El Nashar wrote:

TEN> Recently after upgrading to wx 2.9.4 I started receiving a bunch of the
TEN> following warnings throughout projects that required wxWidgets. These
TEN> warnings obviously never appeared with previous version of wxWidgets, in
TEN> these same projects. I tried re-arranging my headers to make sure the wx
TEN> headers came after the windows standard headers, but for some reason I
TEN> still keep getting the warnings.

Actually you'd avoid them if you included wxWidgets headers first.

Ideal would, of course, be to make it work in either case and I think we
need to include urlmon.h explicitly before checking whether these symbols
are defined but I won't risk making this change before 2.9.4.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Reply all
Reply to author
Forward
0 new messages