0

I am using xcode5 building a iOS static library which support arm64 for iphone5s, but when building the assembly file, It shows the error message as below.

/Users/markchen/iDev/webRTC/ios/svnWebRTC/webrtcLibSource/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse_arm.S:1:1: error: unexpected token at start of statement
@
^
/Users/markchen/iDev/webRTC/ios/svnWebRTC/webrtcLibSource/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse_arm.S:2:1: error: unexpected token at start of statement
@ Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
^
/Users/markchen/iDev/webRTC/ios/svnWebRTC/webrtcLibSource/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse_arm.S:3:1: error: unexpected token at start of statement
@
^
/Users/markchen/iDev/webRTC/ios/svnWebRTC/webrtcLibSource/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse_arm.S:4:1: error: unexpected token at start of statement
@ Use of this source code is governed by a BSD-style license

Anyone came across this problem? Thanks for help.

4

1 回答 1

0

我认为您正在尝试构建类似的东西

http://dxr.mozilla.org/mozilla-central/source/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse_arm.S

? 首先,这是 arm64 汇编程序将拒绝为无效的 armv7 程序集。但是您看到的错误是因为@用于在此文件中标记注释的字符无法被 iOS 的 arm64 汇编程序识别。您确定此文件在传递给汇编程序之前不应该进行预处理吗?或者它可能是为不同的汇编程序编写的。

于 2014-02-14T04:56:27.290 回答