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