cs0601.cs 296 B

1234567891011
  1. // cs0601.cs : The DllImport attribute must be specified on a method marked 'static' and 'extern'.
  2. // Line : 9
  3. using System;
  4. using System.Runtime.InteropServices;
  5. class Test {
  6. [DllImport("cygwin1.dll", EntryPoint="puts", CharSet=CharSet.Ansi)]
  7. public extern int puts (string name);
  8. }