Re: Compile fails in one project, succeeds in twin
Re: Compile fails in one project, succeeds in twin
- Subject: Re: Compile fails in one project, succeeds in twin
- From: Ken Thomases <email@hidden>
- Date: Sat, 14 Nov 2009 02:20:34 -0600
On Nov 14, 2009, at 1:59 AM, Rick Mann wrote:
In one project, the C++ file (a wrapper for CGPoint, implemented by
subclassing CGPoint) compiles just fine. In the other project, it
gets a pile of syntax errors beginning with "expected class-name
before '{' token" on the class declaration's opening brace.
Sounds like CGPoint hasn't been declared, which suggests the relevant
header hasn't been included. If the difference isn't in the file
declaring your class, it may be in one of the headers it includes,
directly or indirectly, or even the pre-compiled header.
You might preprocess the file in the non-working project and search
for CGPoint.
I've even compared the two compiler invocations:
http://pastie.org/private/nba82akhle82tna7vg7pcq
Nothing would indicate why one succeeds where the other fails. Any
ideas?
Well, since the actual sources files are different, having comparable
compile commands doesn't indicate much. If the problem is in the
source or in build settings affecting pre-compiled headers (rather
than the compile command), it wouldn't show up in such a comparison.
Xcode project files are pretty diff-able.
Regards,
Ken
_______________________________________________
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