[Mono-list] About: Using Mono to compile for .NET Compact Framework(PocketPC)

Raśl Romero mono@bgta.net
Wed, 14 Jul 2004 09:39:45 +0200


Good day people!

In order to compile PocketPC .NET binaries using Mono 1.0, I can extract
and rename the .NET dlls from the Compact
Framework's .cab for ARM and compile with /nostdlib using the procedure
documented at:

- http://dotnetdn.com/without-visual-studio/
- http://www.ward.nu/computer/teletekst/compile.html
- (Last DLL Rename table) http://wiki.sharpdevelop.net/default.aspx/SharpDevelop.CompactFrameworkDevelopment?diff=y

However, trying this with Mono on GNU/Linux with a command like:

mcs -r:libs/system.dll -r:libs/mscorlib.dll -r:libs/system.drawing.dll gui.cs /nostdlib /noconfig

OR

mcs -lib:./libs/ -r:system.dll -r:mscorlib.dll -r:system.drawing.dll gui.cs /nostdlib /noconfig



fails with tons of 'not defined' errors for core elements like "error
CS0518: The predefined type `System.Void' is not defined", like:

error CS0518: The predefined type `System.Object' is not defined
error CS0518: The predefined type `System.ValueType' is not defined
error CS0518: The predefined type `System.Attribute' is not defined
error CS0518: The predefined type `System.IComparable' is not defined



Is there a
way to do this with Mono currently, or anyone have an idea as to what
code changes would be required?


I was reading this posts(and all the replys) and links:

http://www.mail-archive.com/mono-list@lists.ximian.com/msg04272.html
http://www.mail-archive.com/mono-list@lists.ximian.com/msg03360.html
http://lists.ximian.com/archives/public/mono-list/2003-August/015210.html
http://archive.neotonic.com/archive/mono-list/msg/12540


Best Regards