Using Mono for C ++ Development

I am starting to use Mono to develop applications in C # and C ++. I wanted to ask you how Mono compiles C ++ code? is it using gcc? It's amazing to see that it has STL containers ... Also, can I use Boost libraries and GSL libraries with Mono? Thanks in advance.

+6
c ++ c # open-source mono
source share
2 answers

I think you should use MonoDevelop , an IDE, unlike Mono itself.

Yes, MonoDevelop uses gcc / g ++ to compile the C / C ++ source code, but it is not compiled for CIL - it is compiled into a native binary.

If I understand correctly, then you can use boost simply.

If, however, you ask if Mono supports assembly or mixed-mode executables (for example, / exe assemblies that contain both native and .NET CIL), then, unfortunately, they tell you that this function is not supported, and does not compile C ++ for pure CIL from Mono.

+7
source share

If you don’t need mixed mode (i.e. forget the native part and switch only to CIL-only), mono works with C ++ code (I heard that now they experimentally support mixed mode, especially on Windows, and in other places through wine, but I think that part is NOT ready for prime time). One of the well-supported C ++ compilers currently is the Microsoft C ++ / CLI on Net 2.x networks; (for many years) to add gcc, but I don’t yet know any production-ready result: - (.

+5
source share

All Articles