Exports and License

Jan 15, 2015 at 5:56 AM
Is it possible to tag a static method as exported via an attribute for example, e.g. to make a C# DLL that can be called from other code?

Also is your CoreLib library Apache licensed or GPL?
Coordinator
Jan 15, 2015 at 7:07 PM
Edited Jan 15, 2015 at 7:08 PM
Hi at this moment I do not know which license to apply as originally I have taken the lib from Micro .Net framework which is Apache 2.0 but it is massivly changed already and I am planning in (far) future to get rid of using it with replacement to mscorlib.dll


in project Babylon 3D C#/native port you can find a lot of examples how to call DLL functions for example call OpenGl functions:
[DllImport(" ", CallingConvention = CallingConvention.StdCall)]
public static extern void glutInitDisplayMode(int mode);
it will generate following code in LLVM
declare dllimport x86_stdcallcc void @glutInitDisplayMode(i32 %"arg.0.mode")
Space in DLLImport is important and do not gorget to link library when you compile exe file with g++
Jan 17, 2015 at 2:40 PM
I was kind of thinking the other way around, exporting a c# static method, e.g. llvm dllexport .