Re: vc++ different basic types



You have two header files that are defining values in different ways. It tells you
precisely which files are involved, and precisely what line in each file the definition is
found. So figure out why this is happening. You would have to tell us what those lines
are, for example. It might be that one of the files is hopelessly obsolete, but without
showing a couple of those lines it is hard to guess.

You have ALL the information necessary to tell us what the problem is, why not show it?
joe

On Fri, 28 Sep 2007 19:45:36 -0700, worlman385@xxxxxxxxx wrote:

Recently i downloaded a wireless card vc++ open source project from
http://wire.cs.nthu.edu.tw/wire1x/wire1x_2_2_src.zip

but when i build the project in vc++ 2005 i got 5 errors :

1>d:\sourceforge\wire1x_2_2_src\wpa.h(80) : error C2371:
'NDIS_802_11_KEY' : redefinition; different basic types
1> c:\program files\microsoft visual studio
8\vc\platformsdk\include\ntddndis.h(914) : see declaration of
'NDIS_802_11_KEY'
1>d:\sourceforge\wire1x_2_2_src\cm_func.h(156) : error C2371:
'NDIS_802_11_REMOVE_KEY' : redefinition; different basic types
1> c:\program files\microsoft visual studio
8\vc\platformsdk\include\ntddndis.h(921) : see declaration of
'NDIS_802_11_REMOVE_KEY'
1>d:\sourceforge\wire1x_2_2_src\cm_func.h(165) : error C2011:
'_NDIS_WLAN_BSSID_EX' : 'struct' type redefinition
1> c:\program files\microsoft visual studio
8\vc\platformsdk\include\ntddndis.h(987) : see declaration of
'_NDIS_WLAN_BSSID_EX'
1>d:\sourceforge\wire1x_2_2_src\cm_func.h(180) : error C2371:
'NDIS_802_11_BSSID_LIST_EX' : redefinition; different basic types
1> c:\program files\microsoft visual studio
8\vc\platformsdk\include\ntddndis.h(1007) : see declaration of
'NDIS_802_11_BSSID_LIST_EX'
1>d:\sourceforge\wire1x_2_2_src\cm_func.h(185) : error C2371:
'NDIS_802_11_FIXED_IEs' : redefinition; different basic types
1> c:\program files\microsoft visual studio
8\vc\platformsdk\include\ntddndis.h(1014) : see declaration of
'NDIS_802_11_FIXED_IEs'

The 3 source code files related to the above error is the following
http://www.oniva.com/upload/1356/wpa.h
http://www.oniva.com/upload/1356/ntddndis.h
http://www.oniva.com/upload/1356/cm_func.h

the open source project need the follow library
Microsoft Platform SDK
Microsoft DDK
OpenSSL
WinPcap

Any one knows how to fix this build error?

Thank you!


Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Functions in Lisp
    ... There is no "forward declaration" in Lisp, but you could fake it by ... defining an empty function, then defining the function which calls it, ... (defun recursive (x) ... "A call within a file to a named function that is defined in the same file refers to that function, unless that function has been declared notinline. ...
    (comp.lang.lisp)
  • Re: A question about One Definition Rule
    ... >> I just realized I might have broken the rule by defining the exception ... >> classes in the header file. ... Or do you mean a class declaration, ... I'm aware that a declaration can also be a definiton (as in int x; ...
    (comp.lang.cpp)
  • Re: Requesting advice how to clean up C code for validating string represents integer
    ... % diff CookTop.html* ... < you will be defining later in the file. ... < fuction before you defie it, for example if you have two functions that ... < You write just a declaration for any function that needs to be called before ...
    (comp.lang.c)
  • Reassignment to a const variable that was declared in an if()
    ... I thought that I understood how C++ allows for the declaration and ... defining of variables within an ifstatement and how the declared ... the GCC compiler that I am using compiled the code without any ... warnings or errors returned. ...
    (comp.lang.cpp)
  • redefinition error
    ... Recently i downloaded a wireless card vc++ open source project from ... Any one knows how to fix this build error? ...
    (microsoft.public.vc.language)

Loading