• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Allocating a C++ class from obj C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Allocating a C++ class from obj C
      • From: Adin Hunter Baber <email@hidden>
  • Prev by Date: Re: XCode 2.2 internal error
  • Next by Date: Subversion and XCode 2.2
  • Previous by thread: Re: Problems using agvtool during build
  • Next by thread: Re: Allocating a C++ class from obj C
  • Index(es):
    • Date
    • Thread