1
我是新來的目標C.我從C++移植到目標c。在目標中獲取錯誤 - 靜態常量聲明C
RSDS.h
------
#import <Foundation/Foundation.h>
#import "msg_remote.h"
@interface RSDS : NSObject {
}
@interface RS232Data : NSObject {
unsigned char m_abTxMsgImage[RMH_MESSAGE_MAX_SIZE]; //
Error:variably modified 'm_abTxMsgImage' at file scope
}
msg_remote.h
------------
static const int RMH_MESSAGE_MAX_SIZE = 4096;
謝謝很多。我改變了它,因爲你告訴here.It工作 – Angus 2011-05-04 09:23:17
@Beata:沒問題 – JeremyP 2011-05-04 09:26:22