[Mono-dev] [PATCH] Add mixed-mode assembly support on Windows
Robert Jordan
robertj at gmx.net
Tue Apr 22 17:04:19 EDT 2008
Hi Kornél,
Kornél Pál wrote:
> Now I redesigned several things but still fails to compile:
> /mono/mono/mono/metadata/domain.c:1216: undefined reference to
> `_MonoFixupExe at 4'
> /mono/mono/mono/metadata/domain.c:1171: undefined reference to
> `_MonoFixupCorEE at 4'
>
> If I add this to domain.c it compiles just fine:
> #include <mono/metadata/coree.c>
>
> I really have no idea what sould I modify. Please help.
> And also please review the patch and if you like it please approve it.
I think the following code is from another patch set (the cmd line
encoding issue you sent a patch for). Is it complete?
If this is solved, I will try to fix the cygwin build.
Robert
> Index: mono/mono/mini/main.c
> ===================================================================
> --- mono/mono/mini/main.c (revision 101236)
> +++ mono/mono/mini/main.c (working copy)
> @@ -1,8 +1,31 @@
> #include "mini.h"
>
> +#ifdef PLATFORM_WIN32
> +
> int
> +main ()
> +{
> + int argc;
> + gunichar2** argvw;
> + gchar** argv;
> + int i;
> +
> + argvw = CommandLineToArgvW (GetCommandLine (), &argc);
> + argv = g_new0 (char*, argc);
> + for (i = 0; i < argc; i++)
> + argv [i] = g_utf16_to_utf8 (argvw [i], -1, NULL, NULL, NULL);
> +
> + LocalFree (argvw);
> +
> + return mono_main (argc, argv);
> +}
> +
> +#else
> +
> +int
> main (int argc, char* argv[])
> {
> return mono_main (argc, argv);
> }
>
> +#endif
More information about the Mono-devel-list
mailing list