Building demos

julien.livet at free.fr julien.livet at free.fr
Mon Sep 2 15:55:57 CEST 2024


Hello, 


I have recently downloaded and installed GMP on my computer, using MSYS2 with UCRT64 compiler. 
I wanted to test demos, for that, I followed steps to build demos but it fails. 
For example, in the demos folder, here is the console output: 
$ make factorize 
gcc -O2 -pedantic -fomit-frame-pointer -m64 -mtune=k8 -march=k8 factorize.c -o factorize 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x27): undefined reference to `__ 
gmpz_powm' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x34): undefined reference to `__ 
gmpz_cmp_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x43): undefined reference to `__ 
gmpz_cmp' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x61): undefined reference to `__ 
gmpz_cmp_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x80): undefined reference to `__ 
gmpz_powm_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x8b): undefined reference to `__ 
gmpz_cmp' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x116): undefined reference to `_ 
_gmpz_clear' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x19e): undefined reference to `_ 
_gmpz_cmp' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x1b7): undefined reference to `_ 
_gmpz_cmp' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x1fb): undefined reference to `_ 
_gmpz_init' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x223): undefined reference to `_ 
_gmpz_set' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x244): undefined reference to `_ 
_gmpz_set' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x2c9): undefined reference to `_ 
_gmpz_init' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x331): undefined reference to `_ 
_gmpz_init' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x352): undefined reference to _ 
_gmpz_init_set_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x365): undefined reference to `_ 
_gmpz_clear' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x3b5): undefined reference to `_ 
_gmpz_init' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x3bf): undefined reference to `_ 
_gmpz_scan1' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x3cf): undefined reference to `_ 
_gmpz_fdiv_q_2exp' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x3e9): undefined reference to `_ 
_gmpz_init_set_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x3fc): undefined reference to `_ 
_gmpz_clear' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x420): undefined reference to `_ 
_gmpz_divisible_ui_p' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x43c): undefined reference to `_ 
_gmpz_cmp_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x456): undefined reference to `_ 
_gmpz_divisible_ui_p' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x468): undefined reference to `_ 
_gmpz_tdiv_q_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x472): undefined reference to `_ 
_gmpz_init_set_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x485): undefined reference to `_ 
_gmpz_clear' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x494): undefined reference to `_ 
_gmpz_clear' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x504): undefined reference to `_ 
_gmpz_cmp_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x52b): undefined reference to `_ 
_gmpz_cmp_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x53c): undefined reference to `_ 
_gmpz_cmp_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x5c0): undefined reference to `_ 
_gmpz_inits' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x5d1): undefined reference to `_ 
_gmpz_sub_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x5db): undefined reference to `_ 
_gmpz_scan1' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x5ef): undefined reference to `_ 
_gmpz_tdiv_q_2exp' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x5fc): undefined reference to `_ 
_gmpz_set_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x655): undefined reference to `_ 
_gmpz_add_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x6cd): undefined reference to `_ 
_gmpz_divexact' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x6de): undefined reference to `_ 
_gmpz_powm' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x6eb): undefined reference to `_ 
_gmpz_cmp_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x734): undefined reference to `_ 
_gmpz_clears' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x757): undefined reference to `_ 
_gmpz_set' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x79f): undefined reference to `_ 
_gmpz_clear' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x82e): undefined reference to `_ 
_gmpz_cmp_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x83f): undefined reference to `_ 
_gmpz_cmp_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x8db): undefined reference to `_ 
_gmpz_inits' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x8f5): undefined reference to `_ 
_gmpz_init_set_si' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x902): undefined reference to `_ 
_gmpz_init_set_si' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x90f): undefined reference to `_ 
_gmpz_init_set_si' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x91c): undefined reference to `_ 
_gmpz_init_set_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x932): undefined reference to `_ 
_gmpz_cmp_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x953): undefined reference to `_ 
_gmpz_mul' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x961): undefined reference to `_ 
_gmpz_mod' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x96f): undefined reference to `_ 
_gmpz_add_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x97d): undefined reference to `_ 
_gmpz_sub' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x98b): undefined reference to `_ 
_gmpz_mul' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x999): undefined reference to `_ 
_gmpz_mod' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x9b2): undefined reference to `_ 
_gmpz_gcd' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x9bf): undefined reference to `_ 
_gmpz_cmp_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x9d4): undefined reference to `_ 
_gmpz_set' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0x9e8): undefined reference to `_ 
_gmpz_set' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xa1a): undefined reference to `_ 
_gmpz_mul' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xa28): undefined reference to `_ 
_gmpz_mod' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xa39): undefined reference to `_ 
_gmpz_add_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xa50): undefined reference to `_ 
_gmpz_set' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xa82): undefined reference to `_ 
_gmpz_mul' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xa90): undefined reference to `_ 
_gmpz_mod' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xa9e): undefined reference to `_ 
_gmpz_add_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xaac): undefined reference to `_ 
_gmpz_sub' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xaba): undefined reference to `_ 
_gmpz_gcd' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xac7): undefined reference to `_ 
_gmpz_cmp_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xae3): undefined reference to `_ 
_gmpz_divexact' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xaf0): undefined reference to `_ 
_gmpz_cmp_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xb01): undefined reference to `_ 
_gmpz_cmp_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xb50): undefined reference to `_ 
_gmpz_cmp_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xb61): undefined reference to `_ 
_gmpz_cmp_ui' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xb7f): undefined reference to `_ 
_gmpz_mod' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xb8d): undefined reference to `_ 
_gmpz_mod' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xb9d): undefined reference to `_ 
_gmpz_mod' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text+0xbed): undefined reference to `_ 
_gmpz_clears' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text.startup+0x4c): undefined referenc 
e to `__gmpz_init' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text.startup+0x73): undefined referenc 
e to `__gmpz_set_str' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text.startup+0x82): undefined referenc 
e to `__gmp_printf' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text.startup+0xd7): undefined referenc 
e to `__gmp_printf' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text.startup+0x118): undefined referen 
ce to `__gmpz_clear' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text.startup+0x1a7): undefined referen 
ce to `__gmpz_init' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text.startup+0x1c7): undefined referen 
ce to `__gmpz_inp_str' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text.startup+0x1e7): undefined referen 
ce to `__gmp_printf' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text.startup+0x237): undefined referen 
ce to `__gmp_printf' 
D:/Programmes/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ 
bin/ld.exe: D:\Programmes\msys64\tmp\ccr5hz82.o:factorize.c:(.text.startup+0x278): undefined referen 
ce to `__gmpz_clear' 
collect2.exe: error: ld returned 1 exit status 
make: *** [<builtin>: factorize] Error 1 



I think that Makefile.in should be modified to get correct linkage but I am not so familiar with Makefile to do that. 



Regards, 


Julien LIVET 


More information about the gmp-bugs mailing list