Saturday, July 10, 2010

Cyclic redundancy issue

Q. Error expected specifier-qualifier-list

A. It is because of cyclic-imports. One file imported to other file and the other file imported back to first one. To avoid this one should use "Forward Class reference"

@class for one of the files instead of #import.

It's explained here : http://timburrell.net/blog/2008-11-23/effective-c-cyclical-dependencies/

No comments:

Post a Comment