Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-18-2010, 11:07 AM   #1 (permalink)
Registered Member
 
Join Date: Jan 2009
Posts: 90
victorsk is on a distinguished road
Default 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.
victorsk is offline   Reply With Quote
Old 01-18-2010, 11:24 AM   #2 (permalink)
Maker of Games
 
Mr Jack's Avatar
 
Join Date: Nov 2009
Location: Coventry, UK
Posts: 395
Mr Jack is on a distinguished road
Default

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
Mr Jack is offline   Reply With Quote
Old 01-18-2010, 11:28 AM   #3 (permalink)
Registered Member
 
Join Date: Jan 2009
Posts: 90
victorsk is on a distinguished road
Default

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.
victorsk is offline   Reply With Quote
Old 01-18-2010, 12:46 PM   #4 (permalink)
Maker of Games
 
Mr Jack's Avatar
 
Join Date: Nov 2009
Location: Coventry, UK
Posts: 395
Mr Jack is on a distinguished road
Default

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
Mr Jack is offline   Reply With Quote
Old 01-18-2010, 12:48 PM   #5 (permalink)
Registered Member
 
Join Date: Jan 2009
Posts: 90
victorsk is on a distinguished road
Default

Hi,

On simulator :-(
victorsk is offline   Reply With Quote
Old 01-18-2010, 01:01 PM   #6 (permalink)
Registered Member
 
Join Date: Jan 2009
Posts: 90
victorsk is on a distinguished road
Default

I run the "find" tool but it didn't find CFXMLTreeRef.h file only CFXMLNode.h and CFXMLParser.h, could this be the problem?
victorsk is offline   Reply With Quote
Old 01-18-2010, 01:59 PM   #7 (permalink)
Registered Member
 
Join Date: Jan 2009
Posts: 90
victorsk is on a distinguished road
Default

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.
victorsk is offline   Reply With Quote
Old 01-18-2010, 02:34 PM   #8 (permalink)
Maker of Games
 
Mr Jack's Avatar
 
Join Date: Nov 2009
Location: Coventry, UK
Posts: 395
Mr Jack is on a distinguished road
Default

*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.
Mr Jack is offline   Reply With Quote
Old 06-05-2010, 02:08 AM   #9 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 2
mayurnilwant is on a distinguished road
Default 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
mayurnilwant is offline   Reply With Quote
Old 06-08-2010, 04:18 AM   #10 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 2
mayurnilwant is on a distinguished road
Default I am getting the same problem...

expected declaration specifiers or '...' before 'CFXMLTreeRef' please any body reply;;;;
mayurnilwant is offline   Reply With Quote
Old 06-08-2010, 11:16 AM   #11 (permalink)
Maker of Games
 
Mr Jack's Avatar
 
Join Date: Nov 2009
Location: Coventry, UK
Posts: 395
Mr Jack is on a distinguished road
Default

You need to import CFXMLNode.h to include the definitions.
__________________


Visit Mr Jack Games for my blog and more about my games
Mr Jack is offline   Reply With Quote
Old 07-08-2010, 03:52 AM   #12 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 100
mindus is on a distinguished road
Default

Quote:
Originally Posted by victorsk View Post
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
mindus is offline   Reply With Quote
Old 07-08-2010, 05:26 AM   #13 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 100
mindus is on a distinguished road
Default

Quote:
Originally Posted by mindus View Post
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
mindus is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» 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
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:02 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0