Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/base35/errorbase.net/qa-include/qa-db.php on line 50
Error C3381: (assembly) : assembly access specifiers are only available in code compiled with a /clr option - Errorbase
Follow Us
Contribute
  • 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 6 years ago by errorbase (170,010 points)
edited 6 years ago by onur

1 Solution

0 votes

Remove public word.

class A {};

solved 4 years ago by anonymous

Related errors