尝试使用Clang for iOS构建OpenSSL并不断收到这些错误
Undefined symbols for architecture i386:
"start"
implicit entry/start for main executable
(maybe you meant: _start_hash, _BN_CTX_start , _dtls1_start_timer )
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Undefined symbols for architecture x86_64:
"start"
implicit entry/start for main executable
(maybe you meant: _start_hash, _BN_CTX_start , _dtls1_start_timer )
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
为armv7,armv7s,arm64构建良好
使用:https://github.com/x2on/OpenSSL-for-iPhone,对clang进行修改
起初我以为是c语,所以又恢复为旧的gcc ...问题仍在发生,所以我必须在做其他事情。D:
更新1:
我以前在CFLAGS中使用
-miphoneos-version-min=5.1
。将最小值更改为
-miphoneos-version-min=6.0
时现在似乎可以编译了……尽管没有意义…… 最佳答案
好的解决方案,在这里找到:
https://github.com/danoli3/OpenSSL-for-iPhone
问题是将-miphoneos-version-min=
用于模拟器CFLAGS。
更改以下内容可解决iOS 5.1目标的问题-mios-simulator-version-min=
关于ios - 运行OpenSSL的make(iOS,i386,x86_64)时出现Clang错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/25990096/