diff --git a/examples/BUILD b/examples/BUILD index bdddceb..f5fb392 100644 --- a/examples/BUILD +++ b/examples/BUILD @@ -16,7 +16,7 @@ cc_binary( name = "send_hello", srcs = ["e02_send_hello.c"], copts = ["-DLOGGER_ENABLE"], - linkopts = ["-pthread"], + linkopts = ["-pthread", "-lm"], deps = [ "//iota_client_service:config", "//iota_client_service:service", @@ -68,7 +68,7 @@ cc_binary( name = "send_tokens", srcs = ["e06_send_tokens.c"], copts = ["-DLOGGER_ENABLE"], - linkopts = ["-pthread"], + linkopts = ["-pthread", "-lm"], deps = [ "//iota_client_service:config", "//iota_client_service:service", diff --git a/examples/e04_generate_address.c b/examples/e04_generate_address.c index f9b1fb2..1661c91 100644 --- a/examples/e04_generate_address.c +++ b/examples/e04_generate_address.c @@ -7,6 +7,8 @@ #include "iota_client_service/config.h" #include "iota_client_service/client_service.h" +#include "iota_client_service/config.h" + static tryte_t const *const SEED = (tryte_t *)"G9JEMIRJKUXDKUPPAIMEQSGVADYLSJRSBTEIRDWSCTLCVQOJWBM9XESTWTSONOTDDQUXMYCNVAKZWPPYW"; @@ -58,4 +60,4 @@ int main(void){ }else{ printf("Addresses generated with error code: %i\n", ret); } -} \ No newline at end of file +}