Answer the question
In order to leave comments, you need to log in
A library that uses managed code and is included from native code on linux?
Good day to all!
The task is to write a plugin that will dynamically connect to the main program in linux. The main application is Native C ++, and there is no way to influence this. I've been writing in C# for a long time and would really like to get rid of tons of cycling (this is exactly the impression I got after a more detailed introduction to C ++), so I tried to find ways to use classes from the .net framework to write a plugin.
Under Windows, this was done fairly quickly. One of the simplest ways was to compile the dll with the /clr option and connect this library to test native C++. But as soon as I tried to do it under linux, it didn't work. As far as I understand, neither g++ nor gcc support compiling /clr. Does anyone know how this can be done and use classes from Mono in a library loaded from native C++? Thanks in advance!
Answer the question
In order to leave comments, you need to log in
First, here is a link to a similar problem: Calling C# from native C++, without /clr or COM? .
Secondly, there is an opinion that if you are not writing for yourself, then it makes sense to write a library in C ++. Since you are writing a C# library today “to get rid of the bike building tone”, another programmer will write a plugin in Delphi “to get rid of the bike building tone”, a third one in Java, a fourth one in D, and in N time the project will turn into the most real zoo. Therefore, it is better to stick to one technology. If you want cross-platform and more convenience, use Qt. All this is IMHO, of course.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question