Updated error message to be more helpful
@@ -96,7 +96,9 @@ static void *button_servicer(void * context)
void survive_verify_FLT_size(uint32_t user_size) {
if(sizeof(FLT) != user_size) {
- fprintf(stderr, "FLT type incompatible; the shared library has FLT size %lu vs user program %u\n", sizeof(FLT), user_size);
+ fprintf(stderr, "FLT type incompatible; the shared library libsurvive has FLT size %lu vs user program %u\n", sizeof(FLT), user_size);
+ fprintf(stderr, "Add '#define FLT %s' before including survive.h or recompile the shared library with the appropriate flag. \n",
+ sizeof(FLT) == sizeof(double) ? "double" : "float");
exit(-1);
}
}
