[Mono-bugs] [Bug 56452][Wis] Changed - CS0626: extern method with no impl
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 4 Apr 2004 11:56:06 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by andrew@sobala.net.
http://bugzilla.ximian.com/show_bug.cgi?id=56452
--- shadow/56452 2004-04-04 11:53:00.000000000 -0400
+++ shadow/56452.tmp.27933 2004-04-04 11:56:06.000000000 -0400
@@ -10,13 +10,13 @@
Component: C#
AssignedTo: mono-bugs@ximian.com
ReportedBy: andrew@sobala.net
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
-Summary: mcs produces invalid IL code
+Summary: CS0626: extern method with no impl
Test case is at http://www.gnome.org/~aes/testcsharp-1.0.0.tar.gz
Configure, make, and mono test.exe to run it.
My results:
@@ -95,6 +95,19 @@
Changing summary back since there is an impl.
------- Additional Comments From pcgod@gmx.net 2004-04-04 11:53 -------
There are 2 external functions of which only one has an DllImport
attribute, therefore it is the same problem.
+
+------- Additional Comments From andrew@sobala.net 2004-04-04 11:56 -------
+Ahh, I told you I'd only been doing C# for a day :)
+
+"
+[DllImport ("libcsharptest")]
+private static extern IntPtr return_list ();
+[DllImport ("libcsharptest")]
+private static extern void does_not_work (IntPtr p);
+"
+
+works, so I presume this is what you have to do to import multiple
+functions. Thanks.