[Mono-dev] Lining error while compilation Mono under Windows/VS2008

Bill Holmes billholmes54 at gmail.com
Mon Nov 10 13:44:33 EST 2008


Hi,

This configuration works correctly for me.  I believe the problem is
that you are using the VS Dependency zip-archive.  That archive has
not been kept up to date.  I know there is documentation somewhere
that points to using it but that should be changed.

>From http://www.mono-project.com/Compiling_Mono_VSNET...

"All required libraries for building mono in Visual Studio are
referenced via the MONO_DEPENDENCIES_PREFIX environment variable. Set
this variable to a previous installed mono (C:\Mono-1.2.5.2 for
example), or to a cygwin environment setup for building mono
(D:\cygwin\opt for example)."

I did verify that g_str_has_prefix is not an exposed method in the dll
that is contained in the VS Dependency zip-archive, but it does exist
in the 2.0 installed version of libglib.

-bill

On Mon, Nov 10, 2008 at 1:17 PM, Alexander M. Batishchev
<abatishchev at godfather.net.ru> wrote:
> Hi everybody,
> I'm trying to compile Mono under VS2008.
>
> Configuration 'Debug_eblib' is compiled successfully.
> But just 'Debug' - is not.
> Error LNK2019: unresolved external symbol _g_str_has_prefix referenced in
> function _mono_class_generic_sharing_enabled occurs.
>
> In case of 'Debug_eblib' implementation of 'g_str_has_prefix' is contained
> in eglib.lib which is compiling before libmono, and all works fine.
>
> But in case of just 'Debug' implementation is contained in glib-2.0.lib
> which must be downloaded with VS Dependency zip-archive.
> Is it possible that glib-2.0.lib doesn't contains proper data?
>
> Thanks for any information!
>
> ===
> Best regards,
> Alexander M. Batishchev
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>


More information about the Mono-devel-list mailing list