Skip to content
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

Open
mason-hz opened this issue Jun 29, 2020 · 2 comments
Open

Implicit declaration of function 'clear_err' is invalid in C99 #76

mason-hz opened this issue Jun 29, 2020 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@mason-hz
Copy link

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);

@Don-oneself
Copy link

+1

@XuNeal
Copy link
Contributor

XuNeal commented Nov 24, 2020

可能由于某次修改将example 改坏了。现在的逻辑是通过 tools/ios-framework-build.sh 将iOS的 framework 编译出来,然后放置到RN 中的iOS 相关项目中。
期待哪位有精力帮忙维护一下

@XuNeal XuNeal added the help wanted Extra attention is needed label Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Development

No branches or pull requests

3 participants