Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 956 Bytes

compiler-warning-level-1-c4364.md

File metadata and controls

34 lines (26 loc) · 956 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1) C4364
Compiler Warning (level 1) C4364
11/04/2016
C4364
C4364
1477634c-d60f-4570-ad16-1aaeae24ac7f

Compiler Warning (level 1) C4364

#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 (C++).

Examples

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