Re: Strange Error when importing talkd.h
Re: Strange Error when importing talkd.h
- Subject: Re: Strange Error when importing talkd.h
- From: Charles Bennett <email@hidden>
- Date: Wed, 03 Apr 2002 15:15:08 -0500
Add this
#import <netinet/in.h>
#import <sys/socket.h>
Chuck
Thomas Diemer wrote:
>
>
Hi
>
>
I want to write an Cocoa talk-client. I thought using OSX's talkd would
>
be nice, so I don't have to write an deamon myself. Shouldn't be that
>
tough I thought, imported talkd.h but when compiling I got an error in
>
talkd.h!
>
I couldn't figure out what went wrong. Even when making a new project
>
including talkd.h and trying to define an struct gives me that error.
>
>
#import "myclass.h"
>
#import <protocols/talkd.h>
>
>
@implementation myclass
>
>
CTL_MSG msg;
>
>
@end
>
>
CompileC
>
/Users/thdi/newproject/build/intermediates/newproject.build/Objects/ppc/myclass.
>
o
>
In file included from myclass.m:10:
>
/usr/include/protocols/talkd.h:87: field `addr' has incomplete type
>
/usr/include/protocols/talkd.h:88: field `ctl_addr' has incomplete type
>
/usr/include/protocols/talkd.h:106: field `addr' has incomplete type
>
>
Did I mis a basic when using BSD header files in Cocoa, what went wrong?
>
>
Greetings,
>
>
Thomas
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
--
UPS Management software for OS X
http://www.powerguardian.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.