Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting an Unexpected token after Objective-C string error

I have a class called Caching.h. The below 3 lines of code are given below

#import <Foundation/Foundation.h>

@class ODataEntry;
@class ODataFeed;

I get the error "Unexpected token after Objective-C string at the line

@class ODataEntry

enter image description here

I have added the ODataEntry.h file to the header search path of the project. Is there anything else that must be done for the @Class forward declaration?

like image 889
Sujith Avatar asked Apr 06 '26 20:04

Sujith


1 Answers

Problems elsewhere can cause unexpected errors...

Try checking other files for errors and see if that fixes the problem.

like image 79
Macro206 Avatar answered Apr 09 '26 18:04

Macro206



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!