Allocating a C++ class from obj C
Allocating a C++ class from obj C
- Subject: Allocating a C++ class from obj C
- From: John Draper <email@hidden>
- Date: Tue, 15 Nov 2005 01:51:27 -0800
Hi,
In my controller....
#import "infoServer.h"
- (id)initWithController:(mySipController *)controller
{
< I do some code - not important here >
mInfoServer = new infoServer(); <---- error: parse before "("
token
}
The "mInfoServer" is an instance variable, declared as:
infoServer *mInfoServer;
In my infoserver.h
class infoServer
{
public:
infoServer();
< A bunch of other things I don't think is relevant >
};
why AM I getting this error... ????????
By the way: the controller.mm file is set to: sourcecode.cpp.objcpp
In fact, the file that calls the obj C method - "initWithController"
is also set this way.
Does anyone see what I'm doing wrong? I've always been able to
mix C++ with Obj C, but in this case, nothing I try works....
If this isn't the list or forum for this kind of question,
please direct me to the proper mailing list.
John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden