Today, Apple release iOS 7.1. So, I have to download Xcode 5.1 to build on iOS 7.1. In my code has C language. But when I build, I have an error:
unknown argument: '-cclib' [-Wunused-command-line-argument-hard-error-in-future]
Some one tell : This is a serious problem because several common gcc flags are not supported under clang (most notably -mno-fused-madd)
So, how can I fix that problem, or I have to wait a fix version from Apple?
Answer from OP:
RESOLVED:
I found the answer for this problem. I remove -cclib flag in Build Setting/Other Linker Flag. And no error happen. I think -cclib is not required in clang compiler.
I see some one also have same problem : unknown argument: -fno-obj-arc' [-Wunused-command-line-argument-hard-error-in-future]
. Please replace -fno-obj-arc
with -fno-objc-arc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With