Thursday, January 18, 2018

#1 2002-12-19 07:16:19 am

julifos
Administrator
From:: Malasaña, Madrid
Registered: 2002-11-20
Posts: 2014

Can't compile "Mail Search" example...

Here is the error I get:

Applescript:

Compiling Document.m (9 errors)
   Document.h:3: header file 'Cocoa/Cocoa.h' not found
   Document.m:7: undefined type, found `NSString'
   Document.m:14: undefined type, found `NSWindowController'
   Document.m:20: undefined type, found `NSData'
   Document.m:20: undefined type, found `NSString'
   Document.m:26: undefined type, found `BOOL'
   Document.m:26: undefined type, found `NSData'
   Document.m:26: undefined type, found `NSString'
   <built-in>:1:1: no macro name given in #define directive

Why does this happen? Did I delete something accidentally?

Offline

 

#2 2002-12-26 05:43:30 am

Jean-Baptiste LE STANG
Member
From:: Paris
Registered: 2002-11-20
Posts: 167

Re: Can't compile "Mail Search" example...

Make sure that the header file Document.h is well as below. The 8 remainig errors are due to the fact that he cannot find the Cocoa/Cocoa.h file where your missing types are defined :=))



// Document.h

#import <Cocoa/Cocoa.h>

@interface Document : NSDocument
{
}
@end


--
Jean-Baptiste LE STANG

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)