[Mono-list] C/C++ Compiler for Mono environment?

Grant Hess granthes at localaccess.com
Wed Dec 28 01:59:26 EST 2005


Thanks for the info, guys.

Appreciated!

--Grant.


Marcus wrote:
>>>I've googled, but I don't find any info on C or C++ compilers that
>>>target the CLR.  I did find a couple of partial results, but nothing
>>>that actually seems to work.
>>>
>>>Is there a working C/C++ Compiler for Mono?   (Other than MSFT VS)
> 
> 
> Do you need something that will compile C and C++ or just C? Are you looking 
> something with capabilities like MS's compiler that can interface with both 
> existing C++ libs and C# code and has IJW ("it just works") marshaling?
> 
C++ is probably needed.

Being able to hook up with both C++ libs and C# assemblies would be good!

As far as marshaling goes, I don't know yet.  It depends on what 
direction my project goes.  (It just works is 'USUALLY' a good thing 
anyway 8]  )


> 
>>Not strictly mono, but also open source project implementing the .Net
>>runtime and tools, Portable.Net has a C compiler they claim works:
>>
>>http://www.dotgnu.org/pnet.html
>>
>>I haven't ever used it personally nor looked at it, but it probably works
>>fine when compiling C to IL. It won't run under mono, though - you need the
>>pnet runtime.
> 
> 
> The assemblies produced by the Portable.NET C compiler will run under Mono 
> once you install the OpenSystem.C.dll and libc.dll assemblies.

Cool.  I have some other code that depends on Mono and I don't really 
want to mess with multiple environments.  If I can gacutil these dlls 
into mono, that would be great.

I need to double check their license to make sure it is compatible, but 
I'm almost certain that they are GPL'd.  If so, that will work.


Thanks again for the information.

--Grant


More information about the Mono-list mailing list