I'm trying to add DBAccess to my iOS project.
Importing from the AppDelegate works well but when importing from a .mm file or even when in a .mm file importing another class which imports DBAccess.h, I'm getting errors on the line (from DBAccess.h):
+(void)setupTablesFromClasses:(Class)class...;
The errors are:
(1) Expected ';' after method prototype
(2) Expected identifier
any help will be appreciated
By the looks of it, the problem comes from the parameter name being 'class' which is a reserved word. Changing it to something else solved the compilation issue for me.
+(void)setupTablesFromClasses:(Class)classDecl,...;
Hope this resolves the issue for you.