Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0601.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 676587eff6f783c6c262af07034b22e6c4a7ffe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
// cs0601.cs: The DllImport attribute must be specified on a method marked `static' and `extern'
// Line : 9

using System;
using System.Runtime.InteropServices;
      
class Test {
	[DllImport("cygwin1.dll", EntryPoint="puts", CharSet=CharSet.Ansi)]
	public extern int puts (string name);
	
}