When you're compiling software, your build directory is not
referenced; instead, the installed frameworks are referenced. If you
are sure you want to add a file, add it to Source/GNUmakefile.
However, you almost certainly don't want to do so in this case. (Which
file would you be copying, anyway?)

Greg, Cocoa does seem to contain NSErrors.h, although it's obscure. It
seems to only define several externs for NSString constants referring
to various exceptions, such as NSTextLineTooLongException or
NSWindowServerCommunicationException. These seem to be already defined
in AppKitExceptions.h.

J., ToyViewer seems to be #ifdef'ing this in case __COCOA_ is defined.
At least this piece of its code does:
  
http://svn.gna.org/svn/gsimageapps/trunk/Applications/ToyViewer/TVCtrlPBService.m
So what you want to do is simply remove these lines or add #ifdef
__COCOA_ around this header. Then contact maintainer of the app and
submit a patch.

 Alternatively, check why __COCOA_ ends up being defined for you.

On 8/15/12, Citizen Jimserac <[email protected]> wrote:
> On Aug 15, 5:19 pm, Gregory Casamento <[email protected]>
> wrote:
>> There is no file called NSErrors.h in AppKit.  There is a file called
>> NSError.h in Foundation.
>>
>> GC
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Wed, Aug 15, 2012 at 3:27 PM, Citizen Jimserac <[email protected]>
>> wrote:
>> > Am compiling a ".m" and have a bunch of include files ...
>>
>> > All four of these includes are in the /home/wuming/gnustep/core/gui/
>> > Headers/AppKit direcotry
>>
>> > #import <AppKit/NSApplication.h>
>> > #import <AppKit/NSImage.h>
>> > #import <AppKit/NSPasteboard.h>
>> > #import <AppKit/NSErrors.h>
>>
>> > Compiler finds the first 3 no problem but errors out on the last with
>> > a
>> > "fatal error"   "file not found" on the NSErrors.h
>>
>> > But... if I change to an explicit path in the import for it... as in
>> > (see below)
>>
>> > #import <AppKit/NSApplication.h>
>> > #import <AppKit/NSImage.h>
>> > #import <AppKit/NSPasteboard.h>
>> > #import "/home/wuming/gnustep/core/gui/Headers/AppKit/NSErrors.h"
>>
>> > It find it no problem and the compile proceeds merrily along (!!)
>>
>> > What am I missing ??
>>
>> > Thanks
>> > J.
>>
>> > _______________________________________________
>> > Discuss-gnustep mailing list
>> > [email protected]
>> >https://lists.gnu.org/mailman/listinfo/discuss-gnustep
>>
>> --
>> Gregory Casamento
>> Open Logic Corporation, Principal Consultant
>> yahoo/skype: greg_casamento, aol: gjcasa
>> (240)274-9630 (Cell)http://www.gnustep.orghttp://heronsperch.blogspot.com
>
> I know.
>
> I just copied it in.
>
> How else could I compile ToyViewer ?
>
> Thanks
> J.
> _______________________________________________
> Discuss-gnustep mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep
>


-- 
Ivan Vučica - [email protected]

_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to