Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Warning (level 1) C4364

Error Message

#using for assembly 'file' previously seen at location(line_number) without as_friend attribute; as_friend not applied

A #using directive was repeated for a given metadata file, but the as_friend qualifier was not used in the first occurrence; the compiler will ignore the second as_friend.

For more information, see Friend Assemblies.

Example

The following sample creates a component.

// C4364.cpp
// compile with: /clr /LD
ref class A {};

The following sample generates C4364.

// C4364_b.cpp
// compile with: /clr /W1 /c
#using " C4364.dll"
#using " C4364.dll" as_friend   // C4364

Community Additions

ADD
Show:
© 2015 Microsoft