BullseyeCoverage Up Contents Search

Error: import attributes inconsistent

Symptoms

The error below occurs with Microsoft C++, possibly followed by additional compiler errors.

error: 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.

Updated: 5 Oct 2026