On 21 Aug 2013, at 08:02, Jason Williams <[email protected]> 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



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

Reply via email to