MrJoy/ssss

gmp library linking error in Makefile

eckucukoglu opened this issue · 1 comments

On line 8 of Makefile, cc should take -lgmp option later than source code.

Otherwise undefined reference error can occur.

/tmp/ccDyHO5q.o: In function `field_init':
ssss.c:(.text+0x1a8): undefined reference to `__gmpz_init_set_ui'
ssss.c:(.text+0x1b5): undefined reference to `__gmpz_setbit'
...

Related note

MrJoy commented

Interesting. This begs the question of how this ever worked. :-?