herumi / mcl

a portable and fast pairing-based cryptography library
BSD 3-Clause "New" or "Revised" License
458 stars 157 forks source link

Link fp.o in libmclbn512 (probably others) #44

Closed wemeetagain closed 5 years ago

wemeetagain commented 5 years ago

I ran make, copied the lib files to my /usr/local/lib/ I tried to import the built libmclbn512, got an error Error opening shared object "libmclbn512.so": /usr/local/lib/libmclbn512.so: undefined symbol: _ZN3mcl2fp2Op18destroyFpGeneratorEPNS0_11FpGeneratorE

Edited Makefile to include $(LIB_OBJ) next to $(BN512_OBJ) on L169. Recompiled, imported with no error.

herumi commented 5 years ago

Could you use a link option "-lmclbn512 -lmcl" ?

wemeetagain commented 5 years ago

:+1: thanks for the tip. sorry for the bother, I'm still new at these things.