01-18-2010, 11:07 AM
#1 (permalink )
Registered Member
Join Date: Jan 2009
Posts: 90
Compilation Error
Hi everyone,
I have 4 files that have been generated using WSMakeStubs:
WSStub.h
WSStub.m
WSGeneratedObj.h
WSGeneratedObj.m
I then added these files to my project and compiled. From over 900 errors I reduced the problem to 12 errors. The compile error I get now is:
error: expected declaration specifiers or '...' before 'CFXMLTreeRef'
I think it may have something to do with referencing CoreServices but I am at a loss here.
Could somebody please tell me how this could be fixed?
Thank you,
Victor.
01-18-2010, 11:24 AM
#2 (permalink )
Maker of Games
Join Date: Nov 2009
Location: Coventry, UK
Posts: 395
It would help if you posted the section of code the error occurs in.
__________________
Visit
Mr Jack Games for my blog and more about my games
01-18-2010, 11:28 AM
#3 (permalink )
Registered Member
Join Date: Jan 2009
Posts: 90
Hi,
I am importing "WSStub.h" in my app delegate file and that's where the red 'x' is showing beside and a bubble with errors appears. I then open up the window with more detailed errors and it says:
Code:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/WebServicesCore.framework/Headers/WSMethodInvocation.h:759: error: expected declaration specifiers or '...' before 'CFXMLTreeRef'
and the line that's highlighted with error is:
Code:
typedef CALLBACK_API( CFTypeRef , WSMethodInvocationDeserializationProcPtr )(WSMethodInvocationRef invocation, CFXMLTreeRef msgRoot, CFXMLTreeRef deserializeRoot, void *info);
Please let me know if you need any more details about this error.
Thank you,
Victor.
01-18-2010, 12:46 PM
#4 (permalink )
Maker of Games
Join Date: Nov 2009
Location: Coventry, UK
Posts: 395
Looks like you might be missing the include that brings CFXMLTreeRef in. Are you deploying to simulator or device?
__________________
Visit
Mr Jack Games for my blog and more about my games
01-18-2010, 12:48 PM
#5 (permalink )
Registered Member
Join Date: Jan 2009
Posts: 90
Hi,
On simulator :-(
01-18-2010, 01:01 PM
#6 (permalink )
Registered Member
Join Date: Jan 2009
Posts: 90
I run the "find" tool but it didn't find CFXMLTreeRef.h file only CFXMLNode.h and CFXMLParser.h, could this be the problem?
01-18-2010, 01:59 PM
#7 (permalink )
Registered Member
Join Date: Jan 2009
Posts: 90
Hi everyone,
if anyone finds it useful, I've added import CFXMLNode.h into MethodInvocation.h and compiler was able to recognize CFXMLTreeRef because in the docs it says it's part of CFXMLNode.h For this I had to change permissions to write on the SDK directory. So this error is gone now.
01-18-2010, 02:34 PM
#8 (permalink )
Maker of Games
Join Date: Nov 2009
Location: Coventry, UK
Posts: 395
*redacted*
I was talking tosh here.
__________________
Visit
Mr Jack Games for my blog and more about my games
Last edited by Mr Jack; 06-08-2010 at 11:15 AM .
06-05-2010, 02:08 AM
#9 (permalink )
Registered Member
Join Date: May 2010
Posts: 2
Web service in cocoa
i am calling a web service and i am getting the following error error: expected declaration specifiers or '...' before 'CFXMLTreeRef' i have include coreservices and corefoundation framework in my iphone project
06-08-2010, 04:18 AM
#10 (permalink )
Registered Member
Join Date: May 2010
Posts: 2
I am getting the same problem...
expected declaration specifiers or '...' before 'CFXMLTreeRef' please any body reply;;;;
06-08-2010, 11:16 AM
#11 (permalink )
Maker of Games
Join Date: Nov 2009
Location: Coventry, UK
Posts: 395
You need to import CFXMLNode.h to include the definitions.
__________________
Visit
Mr Jack Games for my blog and more about my games
07-08-2010, 03:52 AM
#12 (permalink )
Registered Member
Join Date: Mar 2010
Posts: 100
Quote:
Originally Posted by
victorsk
Hi,
I am importing "WSStub.h" in my app delegate file and that's where the red 'x' is showing beside and a bubble with errors appears. I then open up the window with more detailed errors and it says:
Code:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/WebServicesCore.framework/Headers/WSMethodInvocation.h:759: error: expected declaration specifiers or '...' before 'CFXMLTreeRef'
and the line that's highlighted with error is:
Code:
typedef CALLBACK_API( CFTypeRef , WSMethodInvocationDeserializationProcPtr )(WSMethodInvocationRef invocation, CFXMLTreeRef msgRoot, CFXMLTreeRef deserializeRoot, void *info);
Please let me know if you need any more details about this error.
Thank you,
Victor.
Hi
I am also facing the same problem. Can any body know how to solve this error.
Thanks
mindus
07-08-2010, 05:26 AM
#13 (permalink )
Registered Member
Join Date: Mar 2010
Posts: 100
Quote:
Originally Posted by
mindus
Hi
I am also facing the same problem. Can any body know how to solve this error.
Thanks
mindus
I have Mac OS X 10.6.1. In the CoreFoundation framework CFXMLNode.h was not available. I think its available in Mac OS X 10.5.
So any body know how to solve the problem in MAC OS X 10.6.1.
The Error that i am getting is expected declaration specifiers or '...' before 'CFXMLTreeRef'
Thanks
Mindus
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
» Advertisements
» Online Users: 330
9 members and 321 guests
2Apps1Day , akacaj , Domele , michelle , NSString , SLIC , soohyun , Techgirl-52 , v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,650
Threads: 94,114
Posts: 402,886
Top Poster: BrianSlick (7,990)
Welcome to our newest member, soohyun