KwH
asked on
__NULL_IMPORT_DESCRIPTOR already defined
I rearranged my projects and now I get the warning "LNK4006: __NULL_IMPORT_DESCRIPTOR already defined in comctl32.lib(COMCTL32.dll) ; second definition ignored" several times. How can I get rid of it?
More details about the error and possible reasons can be found here
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/LNK4006.asp
Cheers!
sunnycoder
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/LNK4006.asp
Cheers!
sunnycoder
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As a good practice, you should protect your header files with
#ifndef IDENTIFIER
#define IDENTIFIER
//contents of header file
...
#endif /*IDENTIFIER*/
If your __NULL_IMPORT_DESCRIPTOR is a data structure or variable, declare it in one c/cc file and link from others by declaring it an extern variable.
If this does not solve your problem, give us more details ...
Where in project is __NULL_IMPORT_DESCRIPTOR found .... what do the declarations look like ... etc.
Cheers!
sunnycoder