Hello everyone,
I got over 9000 "error: stray '@' in program", exactly where I use new Objective-C files (for such daring declarations as "@interface") , but some old Objective-C files who have those sort of declarations (beware! "@interface"!) do not generate those errors.
I did "Get Info" on the .mm files to put their type to sourcecode.cpp.objcpp, but somehow that didn't helped me at all. I also deleted all spaces near the declarations to no avail.
Please try to be as explicit as possible, I'm quite new at programming on Mac, and have a lot of troubles working with XCode (developpement is being done on visual, and we use XCode merely to get that code on iPhone directly), so I'll need as much info as possible.
Thanks all in advance!
P.S. : Maybe I'm not looking closely enough at my code, so I'll post a sample:
This is the start of the file, and it produces the error on "@interface IGPLinkGrabber : NSObject {".
I got over 9000 "error: stray '@' in program", exactly where I use new Objective-C files (for such daring declarations as "@interface") , but some old Objective-C files who have those sort of declarations (beware! "@interface"!) do not generate those errors.
I did "Get Info" on the .mm files to put their type to sourcecode.cpp.objcpp, but somehow that didn't helped me at all. I also deleted all spaces near the declarations to no avail.
Please try to be as explicit as possible, I'm quite new at programming on Mac, and have a lot of troubles working with XCode (developpement is being done on visual, and we use XCode merely to get that code on iPhone directly), so I'll need as much info as possible.
Thanks all in advance!
P.S. : Maybe I'm not looking closely enough at my code, so I'll post a sample:
Code:
#ifndef __SOMECLASS_H__
#define __SOMECLASS_H__
#define STATE_FAIL -1
#define STATE_IDLE 0
#define STATE_WORKING 1
#define STATE_SUCCESS 2
#define STATE_POKE 3
@interface SomeClass : NSObject {
int status;
long long bytesReceived;
char finalLink[255];
NSString* downloadSource;
NSString* downloadDestination;
NSURLResponse* downloadResponse;
NSMutableData* receivedData;
}