More questions when debugging /w arm-elf-gcc

Hi all,
I have a few "undefined" errors when trying to link iofuncs.o, primitive.o,
and external.o...anyone know where those missing defines (see below) are
from?
- In the file integer.h there is this define:
#define mpz_ui_pow_ui(r, x, y) { r[0].value = (Int64)pow(x, y); } But
pow(x,y) is undefined...does anyone know where it came from?...was it a part
of LIBGMP or LIBFFI?
- In primitive.c the functions below seem to be undefined too....
primitive.c:void init_YHC_Primitive(WrapRegisterFun reg, void* arg);
primitive.c: init_YHC_Primitive(prim_register, NULL);
- In external.c the arm-gcc toolchain doesn't seem to support the

Hi.
2007/7/4, Alexis Morris
Hi all,
I have a few "undefined" errors when trying to link iofuncs.o, primitive.o, and external.o...anyone know where those missing defines (see below) are from?
#define mpz_ui_pow_ui(r, x, y) { r[0].value = (Int64)pow(x, y); } But pow(x,y) is undefined...does anyone know where it came from?...was it a part of LIBGMP or LIBFFI?
It's from the standard math library. So plz add "-lm" when linking to include the libm.a.
- In primitive.c the functions below seem to be undefined too....
primitive.c:void init_YHC_Primitive(WrapRegisterFun reg, void* arg); primitive.c: init_YHC_Primitive(prim_register, NULL); ........ primitive.c: (.text+0x750): undefined reference to `init_YHC_Primitive' external.o: In function `ext_load': external.c:(.text+0x170): undefined reference to `dll_open' external.c:(.text+0x1c8): undefined reference to `dll_error' external.c:(.text+0x1f8): undefined reference to `dll_sym' external.c:(.text+0x204): undefined reference to `dll_error'
This should related to the shared library. And so do the following errors which say "dll_**** missing". If your target board doesn't support shared library, you can just uncomment the "#define NO_SHARED" in platform.h. Otherwise, just add the "-ldl" when linking.
_______________________________________________ Yhc mailing list Yhc@haskell.org http://www.haskell.org/mailman/listinfo/yhc
participants (2)
-
Alexis Morris
-
pierric