This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
Implicit declaration of function 'clear_err' is invalid in C99 #76
Labels
help wanted
Extra attention is needed
The following error appears when running RN Example IOS
/Users/sky/Desktop/token-core/examples/RN/ios/RN/TcxApi.m:18:3: error: implicit declaration of function 'clear_err' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
clear_err();
^
/Users/sky/Desktop/token-core/examples/RN/ios/RN/TcxApi.m:18:3: note: did you mean 'clearerr'?
In module 'Darwin' imported from /Users/sky/Desktop/token-core/examples/RN/ios/RN/TcxApi.m:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/stdio.h:142:7: note: 'clearerr' declared here
void clearerr(FILE *);
^
/Users/sky/Desktop/token-core/examples/RN/ios/RN/TcxApi.m:20:24: error: implicit declaration of function 'call_tcx_api' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
const char *result = call_tcx_api([hex UTF8String]);
^
/Users/sky/Desktop/token-core/examples/RN/ios/RN/TcxApi.m:20:15: warning: incompatible integer to pointer conversion initializing 'const char *' with an expression of type 'int' [-Wint-conversion]
const char *result = call_tcx_api([hex UTF8String]);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sky/Desktop/token-core/examples/RN/ios/RN/TcxApi.m:21:23: error: implicit declaration of function 'get_last_err_message' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
const char *error = get_last_err_message();
^
/Users/sky/Desktop/token-core/examples/RN/ios/RN/TcxApi.m:21:15: warning: incompatible integer to pointer conversion initializing 'const char *' with an expression of type 'int' [-Wint-conversion]
const char *error = get_last_err_message();
^ ~~~~~~~~~~~~~~~~~~~~~~
/Users/sky/Desktop/token-core/examples/RN/ios/RN/TcxApi.m:26:3: error: implicit declaration of function 'free_const_string' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
free_const_string(error);
The text was updated successfully, but these errors were encountered: