Re: Basic HTTP program failed to compile
Re: Basic HTTP program failed to compile
- Subject: Re: Basic HTTP program failed to compile
- From: ico <email@hidden>
- Date: Fri, 3 Dec 2010 15:06:33 +0800
Hi All,
The problem is solved, solution as follow for those who is interested in
this problem.
My program is actually a Mac program rather than iPhone, so if you develop
iPhone project, you can
see CFNetwork framework is available when you want to add new framework to
your project.
If you develop Mac project, you won't see CFNetwork framework, you simply
add CoreServices framework
to the project, because in this situation, CFNetwork is part of the
CoreServices umbrella framework.
Now remains one problem for me is that how to fix my project, even I remove
unnecessary framework
I added before, I still got same compile errors, it seems some cache results
are annoying me.
Anyone has an idea?
On Fri, Dec 3, 2010 at 9:11 AM, John Joyce <
email@hidden> wrote:
> Please be patient. If somebody on the list has an answer they will post it.
> If you need an immediate answer, contact DTS.
>
> On Dec 3, 2010, at 10:09 AM, ico wrote:
>
> > Any suggestion? Sure I can delete this project and recreate one, but I
> don't
> > think this is the way to fix problem.
> > Also I want to learn something from this case and not to learn how to
> avoid
> > it. Even though I recreate a new
> > project, I still need to figure out how to compile it without errors for
> > CFNetwork stuff.
> >
> > On Fri, Dec 3, 2010 at 12:49 AM, ico <email@hidden> wrote:
> >
> >> Hi all,
> >>
> >> I am studying CFNetwork Programming Guide document these days, and I
> wrote
> >> a little program with
> >> basic HTTP request and response for testing. However, I can't get this
> >> program to compile, the error
> >> message something like:
> >> Undefined symbols:
> >> "_CFHTTPMessageCreateRequest", referenced from:
> >>
> >> "_kCFHTTPVersion1_1", referenced from:
> >>
> >> Then I try to add existing framework to my project (go to project
> window,
> >> right click the "External
> >> frameworks and libraries" and choose add menu), I add
> >> CoreFoundation.framework and
> >> CoreService.framework and CFNetwork.framework
> >> After that, the situation is getting worse, I recompile my program and
> >> getting 8406 errors.
> >> Some of them are from CFString.h like:
> >>
> >>
> /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:539:0
> >>
> /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:539:
> >> error: storage class specified for parameter
> >> 'CFStringCreateByCombiningStrings'
> >>
> >>
> >> And then I delete those new added framework from my project (go to
> project
> >> window, right click the
> >> framework I want to delete and choose delete command), but nothing
> changes
> >> when I compile
> >> my program again, I still got 8406 errors.
> >>
> >> Now how can I get things right? And how can I compile my program without
> >> errors?
> >> Thanks.
> >>
> >> --
> >> ==========================
> >> Life isn't about finding yourself.
> >> Life is about creating yourself.
> >>
> >>
> >
> >
> > --
> > ==========================
> > Life isn't about finding yourself.
> > Life is about creating yourself.
> > _______________________________________________
> >
> > Cocoa-dev mailing list (email@hidden)
> >
> > Please do not post admin requests or moderator comments to the list.
> > Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> >
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
>
>
--
==========================
Life isn't about finding yourself.
Life is about creating yourself.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden