tags:

views:

65

answers:

2

I have declared a header file which is giving Syntax error before '{' token. I'm using Objective-C++, so the syntax of the header will be in cpp standards. Below is the header declaration.

#import <cocoa/cocoa.h>
#import <curl/curl.h>
class AUHttpConnection
{

  private:

  CURL *m_pHandle;

};

I'm not aware of all the things to be taken care while working in Mac, so I have posted this query. Any Options to be used while using Objective-C++?

+1  A: 

What is the extension of the source that include the header file ? In order to be processed as an Objective-C++ source file, you have to use the "mm" extension.

Laurent Etiemble
ya it is mm extension only....Hey it was silly.....sry for wastin your time....i was importing my class to which has cpp standards to main.m file...So i was facing this problem.
Pradeep Kumar
A: 

Hi..... Sorry for wastin your time....

Mistake was from my part.I was importing header file with cpp standards to main.m file... So i was facing this problem.

Things to be taken care...

Pradeep Kumar