Closed p-dealwis closed 6 years ago
Found the fix for the problem. The command:
g++ -o kpabe_test kpabe_test.o -L. -L/usr/local/lib -lpbc -lgmp -lmbedcrypto -lm -lkpabe -lboost_unit_test_framework
does not work, but instead running this:
g++ -o kpabe_test kpabe_test.o -L. -L/usr/local/lib -lm -lkpabe -lboost_unit_test_framework -lpbc -lgmp -lmbedcrypto
works.
The GMP, PBC and lmbedcrypto (-lpbc -lgmp -lmbedcrypto
) libraries need to be added at the end of the command. The scons file should be fixed accordingly.
Hi and thanks for reporting this. I will look into it and address this in the following days.
@p-dealwis The original compiles fine on macOS with clang, as it appears lib order is irrelevant for Apple's ld. Could you confirm you hit this issue with GCC?
Hi @ikalchev , I am using Ubuntu and yes GCC. I modified the python file to make it work successfully, easy fix.
Ok, thanks for that. Pushing soon.
I got the following error when trying to compile.
I have the mbedtls headers in
/usr/include/mbedtls/
and/usr/local/include/mbedtls/