Embedding MS.NET C# into c/c++ (like mono)

别说谁变了你拦得住时间么 提交于 2019-12-11 13:14:11

问题


Is it possible to embed the MS C# compiler into an umanaged c/c++ host application and make both languages interoperate, very much like Mono does this (like here and here)?
I have a working implementation of this für my Qt based C++ Application using mono, but I'm limited (I really need the memory) by the 32bit constraint of mono on Windows (there are no 64bit releases for windows). So can this be achived with "the original" C# implementation?

BTW: I'd like to continue using GNU compilers (mingw-w64).


回答1:


Microsoft does support this; their term for it is hosting.




回答2:


If you specifically want to use C# compiler, then Mono's C# compiler is managed, while Microsoft's C# compiler is native. There are some differences you cannot conquer.



来源:https://stackoverflow.com/questions/5191551/embedding-ms-net-c-sharp-into-c-c-like-mono

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!