Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error Xcode 5.1 : unknown argument: '-cclib' [-Wunused-command-line-argument-hard-error-in-future]

Tags:

c++

xcode

ios

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?

like image 733
huync Avatar asked Nov 02 '22 03:11

huync


1 Answers

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

like image 126
Liam Avatar answered Nov 10 '22 01:11

Liam