On Jun 10, 1:46 pm, Bill Hart <goodwillh...@googlemail.com> wrote:
> Alloca is a type of memory allocation function available under linux,
> but presumably not available under Windows unless you add the correct
> .lib to the linker dependencies.
>
> Brian do you know if there is a standard alloca available for Windows.

There is an exact equivalent called _alloca with one undersccore
prefix so in the VC++ build I use:

#define alloca _alloca

The double underscore on alloc reported above is likely to be the
problem but I don't know when the extra underscore is added in the GCC
based build.

    Brian






>
> You could try rebuilding the library with:
>
> ./configure --disable-alloca
> etc.
>
> Bill.
>
> 2009/6/10 Peter_APIIT <peterap...@gmail.com>:
>
>
>
> > When i try to
>
> > mpz_t a, b, c;
>
> >  mpz_init(a);
> >  mpz_init(b);
> >  mpz_init(c);
>
> >  mpz_set_str(a, "123", 10);
> >  mpz_set_str(b, "1244", 10);
> >  mpz_set_str(c, 0, 10);
>
> > It also gives unresovled external symbol.
>
> > error LNK2001: unresolved external symbol __alloca            libmpir.a
>
> > error LNK2001: unresolved external symbol __alloca      libmpir.a
>
> > Any help please.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to mpir-devel@googlegroups.com
To unsubscribe from this group, send email to 
mpir-devel+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to