1

I had some legacy C code (not written by me! I don't know C), which I had to import to an iPhone App am writing. The .h file of the C code has this:

static const char rcd_db_h[] = "$Id: sqlservicedb.h,v 1.100.2.1 2009/07/07 12:31:45 fre01 Exp $";

When I compile in XCode (iOS 5.1, XCode 4.5.2), this line throws the error "Expected identifier or '('". I tried various ways to avert this : Googl'ing, adding escape '\' characters, replacing double quote with single quote, adding a * to make it 'static const char *'. All in vain. Please help!

4

1 回答 1

1

看起来我在文件中错误地插入了“(”!哦,天哪!我的一整天都被浪费了。感谢大家的帮助!现在修复它!

于 2013-04-29T16:36:12.787 回答