• 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
expected primary-expression before '*' token ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

expected primary-expression before '*' token ?


  • Subject: expected primary-expression before '*' token ?
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Wed, 1 Jun 2005 13:58:37 +0100

I've never seen this before.

I'm not sure what a primary expression is, either.

I got this error after working on some of my code. The biggest culprit I can think of, might be that I'm using classes which require each other as struct members.

IE:

@class B;
@interface A : NSObject
{
    B* b;
}
@end

@interface B : NSObject
{
    A* a;
}
@end


However, the above example does actually compile, while my code gets a "expected primary expression" error! What is the solution to this? I'm getting the error here:


@interface MyDocument : NSDocument
{
CppContainer* Cpp;
@public:
IBOutlet SCOFileItemsController* FileItemsController; // error of primary on this line



IBOutlet SCOHandyFileItemsController* HandyController; IBOutlet SCOMetaDataController* MetaDataController; IBOutlet SCOTaxonomyController* TaxonomyController; IBOutlet SCOTabController* TabController; IBOutlet NSTableView* MetaTable; }



--
http://elfdata.com/plugin/ Industrial strength string processing, made easy.


"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: expected primary-expression before '*' token ?
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Halo around NSTextField
  • Next by Date: Re: Need help testing for *jaguar* compatibility...
  • Previous by thread: Re: Halo around NSTextField
  • Next by thread: Re: expected primary-expression before '*' token ?
  • Index(es):
    • Date
    • Thread