[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to include Multiple headers
From: |
Jason Williams |
Subject: |
Re: How to include Multiple headers |
Date: |
Wed, 21 Aug 2013 15:01:42 +0100 (BST) |
That fixes the problem. 'No such file or directory' message now goes away.
Thanks you.
----- Original Message -----
From: Richard Frith-Macdonald <richardfrithmacdonald@gmail.com>
To: Jason Williams <jwilliams.f9472@yahoo.co.uk>
Cc: "discuss-gnustep@gnu.org" <discuss-gnustep@gnu.org>
Sent: Wednesday, 21 August 2013, 18:37
Subject: Re: How to include Multiple headers
On 21 Aug 2013, at 08:02, Jason Williams <jwilliams.f9472@yahoo.co.uk> wrote:
> When I build a program which contains multiple headers in other path, how
> should I include those headers in GNUmakefile?
>
> The error throws
> SurfaceView.h: No such file or directory
>
> The tree structure looks like
> OpenWar/Sources-Debian/ # location of GNUmakefile
>
> Library/ViewCore/ # location of SurfaceView.h
>
> My GNUmakefile looks like
>
> include $(GNUSTEP_MAKEFILES)/common.make
> APP_NAME = OpenWar
> OpenWar_HEADERS = ../../Library/ViewCore/SurfaceView.h
> OpenWar_OBJC_FILES = main.m OpenWarDocument.m
> OpenWar_RESOURCE_FILES =
> include $(GNUSTEP_MAKEFILES)/application.make
If you intend to have (in your code)
#import "SurfaceView.h"
then
OpenWar_INCLUDE_DIRS += -I../../Library/ViewCore
If you intend to have (in your code)
#import "ViewCore/SurfaceView.h"
then
OpenWar_INCLUDE_DIRS += -I../../Library