porting gmp to pnacl
zoltan at geogebra.org
Fri Dec 20 16:18:21 UTC 2013
thank you for your kind answer. Meanwhile I learned I was compiling with
the wrong toolchain settings. Now everything is fine. Nothing should be
changed in GMP, it seems to work out of the box with PNaCl. I'll come back
to you when I have a working PNaCl application based on GMP.
2013/12/20 Niels Möller <nisse at lysator.liu.se>
> Kovács Zoltán <zoltan at geogebra.org> writes:
> > 3. When I try to compile a simple demo manually, this is what I get:
> > kovzol at kovzol
> > make isprime
> > -std=gnu99 -O2 -pedantic isprime.c -o isprime
> > /tmp/ccBeMP1x.o: In function `main':
> > isprime.c:(.text+0x11c): undefined reference to `__gmpz_init'
> At least here the problem is obvious: You don't link with libgmp at all.
> I have no idea why the Makefile generates a command like that. If you
> think that is a probem with GMP configure and Makefiles, submit a bug
> report to gmp-bugs at gmplib.org, carefully following the instructions in
> the manual.
> For help with building gmp, gmp-devel is not the right forum. Perhaps
> there's someone on gmp-discuss who can help you, otherwise I think
> you'll have better luck in a forum more specific to your platform and
> Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
> Internet email is subject to wholesale government surveillance.
GeoGebra | Software Developer
More information about the gmp-devel