Follow Us
  • Register

Error C3381: (assembly) : assembly access specifiers are only available in code compiled with a /clr option

0 votes

Native types can be visible outside the assembly, but you can only specify assembly access for native types in a /clr compilation. Ex:

// compile with: /c
public class A {};   // C3381

requested 7 years ago by errorbase (170,010 points)
edited 7 years ago by onur

1 Solution

0 votes

Remove public word.

class A {};

solved 5 years ago by anonymous

Related errors