BullseyeCoverage Up Contents Search

Error c3999: import attributes inconsistent

SYMPTOMS

The error below occurs, possibly followed by additional compiler errors.

error c3999: import attributes inconsistent with location

CAUSE

The translation unit contains multiple #import directives of the same type library with different attributes. BullseyeCoverage requires all such directives to contain the same attributes.

RESOLUTION

Import the type library only once per translation unit.

MORE INFORMATION

To process #import directives and create the type library header files, BullseyeCoverage runs the original unmodified compile command. If the translation unit contains more than one #import for the same library, the one that occurs later overwrites the results of the earlier directive.

c5997

Updated: 30 May 2014