[MonoDevelop] shared library for c# application
buhochileno at gmail.com
buhochileno at gmail.com
Mon Oct 12 21:32:56 EDT 2009
Hi,
I think that the confusing can the ".dll" extension used on Windows. On
Windows you can have a .dll native library (compiled with non-managed
C++ or something like that to native "REAL" machine language) and a
"Managed" .dll library (compiled with C#/VB.NET and so on to "Virtual
Machine" IL machine language). Same "extension" diferent bits on it...
On linux "native" libraries usually take the form of a ".so" file (and
know, also ".a" but I'm trying to make thing simpler), the ".so" libs
have "Real" machine language on it, but, if you use mono-C# compiler you
can have a ".exe" or ".dll" that have "Virtual Machine" IL machine language.
So, if you write a "managed dll" write it entirely on C# (be aware that
they are differences and limitations if you use P/Invoke call on your
C#, VB.NET, etc code) that dll can run on linux with mono without any
change or conversion needed...Same if you write it on mono/linux and
then it can run on Windows, MacOS and so on...(may be touch it here and
there, but cross-platform anyway).
Hope that this help...please ask if you have any other doubt about it...
Mauricio
Andy Selvig wrote:
> I don't know of any way to do this. Sorry.
>
> On Fri, Oct 9, 2009 at 10:50 PM, jasbir <j_viki5 at rediffmail.com
> <mailto:j_viki5 at rediffmail.com>> wrote:
>
>
> Thanks for the reply
>
> Actually the code is developed in c# on Windows but latter on the
> requirments changed and the people who need it want that it should
> be in the
> form of Linux library(.SO) so that it can be used in other code
> implementations. Therefore I need some way to get it converted to
> the Linux
> library.
>
> Any way to get it .
>
>
>
>
>
>
>
> Andy Selvig wrote:
> >
> > There's really no easy way to do this. C# code runs on top of
> the Mono (or
> > .NET on Windows) runtime environment which can't be accessed
> directly from
> > C
> > or C++. dll's written in C# can only be used by other Mono
> libraries or
> > application. Is there a specific problem you're trying to solve?
> >
> > On Fri, Oct 9, 2009 at 12:15 AM, jasbir <j_viki5 at rediffmail.com
> <mailto:j_viki5 at rediffmail.com>> wrote:
> >
> >>
> >> Hi,
> >>
> >> I have a c# console application (Ported from Windows) working
> fine on
> >> Mono.
> >>
> >> I want to create .SO(shared object) file so that it can be used
> by oter
> >> Linux applications.
> >>
> >>
> >> OR
> >>
> >>
> >> How a library of c# application can be created so that it can
> be used by
> >> other Linux applications.
> >>
> >> If I create .DLL file using mono then how it can be used in
> g++ code.
> >>
> >> I need to create a LIBRARY.............................
> >>
> >> Please help me .........:confused:
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/shared-library-for-c--application-tp25815619p25815619.html
> >> Sent from the Mono - MonoDevelop IDE mailing list archive at
> Nabble.com.
> >>
> >> _______________________________________________
> >> Monodevelop-list mailing list
> >> Monodevelop-list at lists.ximian.com
> <mailto:Monodevelop-list at lists.ximian.com>
> >> http://lists.ximian.com/mailman/listinfo/monodevelop-list
> >>
> >
> > _______________________________________________
> > Monodevelop-list mailing list
> > Monodevelop-list at lists.ximian.com
> <mailto:Monodevelop-list at lists.ximian.com>
> > http://lists.ximian.com/mailman/listinfo/monodevelop-list
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/shared-library-for-c--application-tp25815619p25830788.html
> Sent from the Mono - MonoDevelop IDE mailing list archive at
> Nabble.com.
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> <mailto:Monodevelop-list at lists.ximian.com>
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
More information about the Monodevelop-list
mailing list