Re: [Mono-list] Using Mono to compile for .NET Compact Framework(PocketPC)
- Original Message - From: Chris Seaton [EMAIL PROTECTED] Sent: Monday, September 08, 2003 6:12 PM Framework(PocketPC) On Mon, 2003-09-08 at 11:08, Enzo Michelangeli wrote: [...] That was my guess too, so I tried to tell the Mono mcs compiler to point to the Compact Framework's libraries. Is there any way of telling the compiler forget about your default framework completely, and use this other one instead? Don't you want /nostdlib? Right, but then how do I tell mcs to reference the correct mscorlib.dll? It seems that adding -L assemblies_path -r mscorlib doesn't work: if for assemblies_path I use the .CAB of the Compact Framework, or even the standard Microsoft.NET Framework's directory (in my case, C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322) I keep getting a bunch of undefined symbols (such as error CS0518: The predefined type `System.Object' is not defined; and if I use Mono's C:\Program Files\Mono-0.26\lib, (and either -r mscorlib or -r corlib the compilation hangs :-( Enzo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Using Mono to compile for .NET Compact Framework (PocketPC)
- Original Message - From: A Rafael D Teixeira [EMAIL PROTECTED] Sent: Monday, September 08, 2003 8:27 PM [...] I think mcs won't know how to extract assemblies from cabinet files, are you sure csc is able to do that? No, I just guessed, based on what Java does with ZIP and JAR files :-) Whatsoever, extract the assemblies (.dll files) from the cabinet files, to a temporary directory and reference them individually, and dont forget /nostdlib to avoid collisions. Alas, the files in the cabinets have mangled 8.3 names (such as Micros~2.021). Probably the CAB is prepared by the CAB Wizard (http://tinyurl.com/mmdk) and intended for installation in a WinCE environment, and Microsoft knows how to extract the references from the files in it (but I'm not aware of where - or whether - that is documented). Enzo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Using Mono to compile for .NET Compact Framework (PocketPC)
My guess is that since Mono is not (yet) aware of any compact framework, it compiles methods in classes that are removed in the compact release of .NET (it's quite an extensive list) and when you try to run applications compiled with Mono on libraries that are stripped, you run into a missing method sooner or later. This could be on reason to why they die. Are there any error messages when they stop? /malte On Mon, 8 Sep 2003, Enzo Michelangeli wrote: I'm new to mono and CSharp, although I'm fluent in C and Java. I recently installed the Win32 version of Mono 0.26 on a Win98SE machine, and tried some simple compilations: a simple console Hello world program and a couple of notepads, namely: http://www.c-sharpcorner.com/1/NotePadAM.asp http://www.hewener.net/projekte.htm#sdenotepad All appear to work (despite the fact that the docs say that Win2K or XP are required for lack of sufficient Unicode support in '98): the three binaries run as expected on Win98. HOWEVER, only one of the three (namely, the Hello world console application) runs correctly on my PocketPC PDA (running Windows Mobile 2003): the two GUI apps die without any warning, despite the fact that at least the second one was coded explicitely for PocketPC. I also tried, during compilation, to reference assemblies belonging to the Microsoft .NET Compact Framework 1.0 SP1, with command lines such as: mcs -L C:\Program Files\Microsoft .NET Compact Framework 1.0 SP1\netcf.core.ppc3.ARM.cab -L C:\Program Files\Microsoft .NET Compact Framework 1.0 SP1\netcf.all.wce4.ARMV4.cab -r system -r system.drawing -r system.windows.forms -o notepad.exe notepad.cs However, I didn't notice any improvement. Any idea? TIA -- Enzo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list