Hi All:
Has anyone used the webkit SDK, carbon and Codewarrior 8.3? I'm getting
compile errors like:
Error : protocol 'WebDocumentView' redefined
(included from:
WebKit.h:14
CarbonUtils.h:11
main.c:1)
WebFrameView.h line 14 @protocol WebDocumentView;
Error : declaration syntax error
(included from:
WebKit.h:14
CarbonUtils.h:11
main.c:1)
WebFrameView.h line 19 @interface WebFrameView : NSView
Error : declaration syntax error
(included from:
WebKit.h:14
CarbonUtils.h:11
main.c:1)
WebFrameView.h line 20 {
Error : declaration syntax error
(included from:
WebKit.h:14
CarbonUtils.h:11
main.c:1)
WebFrameView.h line 21 @private
Error : declaration syntax error
(included from:
WebKit.h:14
CarbonUtils.h:11
main.c:1)
WebFrameView.h line 23 }
All I'm including is Webkit/CarbonUtils.h, it contains loading carbon
and cocoa. Am I missing an include or project setting? (I've turned on
Objective C).
Any hints?
Thanks
John Cebasek
Bob Frost - 04 Jul 2003 01:57 GMT
You are having header problems. Make sure you properly install the latest
Apple SDK and make sure CodeWarrior knows where they are. Also, make sure
you recompile all precompiled headers for your project.
On 7/3/03 5:45 PM, in article
john_cebasek-477325.17453803072003@nr-ott01.bellnexxia.net, "John Cebasek"
<john_cebasek@sympatico.ca> wrote:
> Hi All:
>
[quoted text clipped - 45 lines]
>
> John Cebasek
John Cebasek - 04 Jul 2003 02:46 GMT
Bob:
I didn't have any sort of prerelease version of Webkit on my computer,
and installed the release version. Codewarrior appears to know where to
get the files, the frameworks directory is in the access paths 'tab'.
I'll recompile the headers and see what happens.
Thanks for your time
John
> You are having header problems. Make sure you properly install the latest
> Apple SDK and make sure CodeWarrior knows where they are. Also, make sure
[quoted text clipped - 53 lines]
> >
> > John Cebasek
John Cebasek - 04 Jul 2003 12:49 GMT
Bob:
I rebuilt the libraries with the "Buildlibraries" project and it did do
the Mac OS X libraries, but after that, I'm still getting the
redefinitions.
Any ideas?
John
In article
<john_cebasek-73F8A9.21455903072003@nr-tor02.bellnexxia.net>,
> Bob:
>
[quoted text clipped - 64 lines]
> > >
> > > John Cebasek
Sean McBride - 06 Jul 2003 20:44 GMT
> I rebuilt the libraries with the "Buildlibraries" project and it did do
> the Mac OS X libraries, but after that, I'm still getting the
> redefinitions.
>
> Any ideas?
Have you tried starting from CW's Cocoa stationary project, and just
adding the Webkit stuff?
Eric Albert - 04 Jul 2003 19:50 GMT
In article
<john_cebasek-477325.17453803072003@nr-ott01.bellnexxia.net>,
> Has anyone used the webkit SDK, carbon and Codewarrior 8.3? I'm getting
> compile errors like:
[quoted text clipped - 5 lines]
> main.c:1)
> WebFrameView.h line 14 @protocol WebDocumentView;
I haven't tried it, but does CodeWarrior have trouble with forward
declarations of protocols? I vaguely recall reading somewhere that it
might.
I don't know a thing about WebKit, but if you can #include the file that
defines WebDocumentView before you #include WebKit/CarbonUtils.h, that
might fix it.
-Eric

Signature
Eric Albert ejalbert@stanford.edu
http://rescomp.stanford.edu/~ejalbert/
Steve Graesser - 24 Jul 2003 19:55 GMT
> In article
> <john_cebasek-477325.17453803072003@nr-ott01.bellnexxia.net>,
[quoted text clipped - 18 lines]
>
> -Eric
I get the same error when trying to compile the SimpleCarbonWeb example.
The protocol WebDocumentView is defined on line 17 in WebDocument.h.
Then a forward reference to the protocol is made on line 14 of WebKit.h.
I believe the CW++ compiler is failing to honor the forward protocol
statement. You can read all about protocol statements at the apple web
site. The URL is
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/3obj
c_language_overview/index.html
In case MWRon reads this...
Any chance in getting this bug fixed in CW 8.3?
Will filing a bug report help getting this bug prioritized?
This bug makes it very difficult to work with the WebKit framework in a
CW project.

Signature
Steve Graesser White Lab Consulting LLC
PGP Fingerprint: 8AA4 6514 A87C FD26 A135 DBA0 F8AF 3E1B 41C5 4B5C
MW Ron - 07 Jul 2003 21:27 GMT
In article
<john_cebasek-477325.17453803072003@nr-ott01.bellnexxia.net>,
>Hi All:
>
[quoted text clipped - 7 lines]
> main.c:1)
>WebFrameView.h line 14 @protocol WebDocumentView;
It sounds like this is being defined in two different files webKit. h
and CarbonUtils.h and they define it differently Look at the headers
and see what they have there.
-- % snip % --
> All I'm including is Webkit/CarbonUtils.h, it contains loading carbon
> and cocoa. Am I missing an include or project setting? (I've turned on
> Objective C).
Somewhere, perhaps in a precompiled header, you are also including
WebKit.h
Ron

Signature
Metrowerks has moved, our new address is now
7700 West Parmer Lane
Austin, TX 78729
Sales and Support 512-996-5300 800-377-5416
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com