[Mono-devel-list] export "C" issues

Mongoose mongoose770 at yahoo.com
Sat Apr 30 23:42:28 EDT 2005


I have confirmed it.  C export won't work with
DllImport.

C#
------------
	[DllImport(libname,
EntryPoint="_Z16freyjaCSharpTestv")]
	public extern static void run2();

	[DllImport(libname, EntryPoint="freyjaSpawn")]
	public extern static void run();

C++
-------------
export "C" {
   void freyjaSpawn();
}

void freyjaCSharpTest();

Test() imports and Spawn() doesn't.  Test is actually
a C++ function that calls Spawn, so I guess I can use
mangled symbols for binary releases until mono is
fixed.  I may write an auto demangler in C# if it's
too much work to resymbol every build.  =)



Sorry yahoo took my code entry as a email input last
time.  =(



http://icculus.org/freyja     | 3d Modeler
http://icculus.org/~mongoose  | Personal


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 



More information about the Mono-devel-list mailing list