hi i got this error ( am using keilv4 for cortex m0 ) .\code.axf: Error: L6218E: Undefined symbol __gmpz_clear (referred from bls.o). .\code.axf: Error: L6218E: Undefined symbol __gmpz_get_si (referred from bls.o). .\code.axf: Error: L6218E: Undefined symbol __gmpz_init (referred from bls.o). .\code.axf: Error: L6218E: Undefined symbol element_from_bytes_compressed (referred from bls.o). .\code.axf: Error: L6218E: Undefined symbol element_from_bytes_x_only (referred from bls.o). .\code.axf: Error: L6218E: Undefined symbol element_pow2_mpz (referred from bls.o). .\code.axf: Error: L6218E: Undefined symbol element_pow3_mpz (referred from bls.o). .\code.axf: Error: L6218E: Undefined symbol element_printf (referred from bls.o). .\code.axf: Error: L6218E: Undefined symbol element_to_bytes_compressed (referred from bls.o). .\code.axf: Error: L6218E: Undefined symbol element_to_bytes_x_only (referred from bls.o). .\code.axf: Error: L6218E: Undefined symbol pairing_clear (referred from bls.o). .\code.axf: Error: L6218E: Undefined symbol pairing_init_set_buf (referred from bls.o). .\code.axf: Error: L6218E: Undefined symbol pbc_die (referred from bls.o). .\code.axf: Error: L6218E: Undefined symbol pbc_free (referred from bls.o). .\code.axf: Error: L6218E: Undefined symbol pbc_malloc (referred from bls.o).
please does anyone have an idea how can i solve these errors thankx
however i get this warning warning: #223-D: function "min" declared implicitly then this error Error: L6218E: Undefined symbol min (referred from main.o).
a) You used a function without prototyping it, so the compiler made assumptions about the parameters passed.
b) The actual functional code required is not provided anywhere in your project, or it's library files, and the linker can't find it.
The solution would be to determine which include file defines this macro, or provide a macro or function in your own code that does so.
well thank you i found the prob now actually in my math.h the minimum is defined as fmin and not min
fmin() isn't really suitable.
min() and max() aren't a required part of stdlib.h, although often there.
stackoverflow.com/.../min-and-max-in-c
The common implementation looks like this
/* min and max macros */ #define max(a,b) (((a) > (b)) ? (a) : (b)) #define min(a,b) (((a) < (b)) ? (a) : (b))
Try Google, it really works...
thank you very much