Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

template types in structs



Using Xcode 2.2 and gcc 4.0:

Probably not posting enough code to pinpoint the problem, but the syntax on the offending line, seems to offend only when within a struct, so maybe that's an indicator.

CXPInterface IMTS_PropertyList;

struct MtsStatement
{
uint32 mOpcode;
CXPRefPtr<IMTS_PropertyList> mArgs; // produces the error below
boolean mLs;
};

error: field 'mArgs' has incomplete type

Indicating perhaps it doesn't know how to handle IMTS_PropertyList...

Or, depending on where the header is included from:

expected ';' before '<' token

Indicating perhaps it doesn't know how to handle CXPRefPtr...

Obviously both are defined via headers included directly, so I'm not really sure what these errors mean.

Any ideas? Thanks,
~Duncan
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.