[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: stupide question
From: |
reuss |
Subject: |
Re: stupide question |
Date: |
Sat, 30 Aug 2003 17:35:27 GMT |
User-agent: |
Pan/0.11.2 (Unix) |
thanks, it helped me
On Sat, 30 Aug 2003 17:12:34 +0200, Pascal J.Bourguignon wrote:
> Reuss Andras writes:
>> Thansk for your reply.
>> How can I include ncurses.h in my GNUMakefile? Thanks
>
> Header files are not included in makefiles. (Not directly usually).
>
> You include ncurses.h in the Objective-C or C source files that need
> the definitions declared in ncurses.h:
>
> #include <ncurses.h>
>
> Now, since it's a system header, as denoted by the default convention
> and using <>, the dependencies don't normally cite it. If you insist,
> you may use the -MM option of gcc instead of -M to make the
> dependencies.
>
> In the GNUMakefile, you would just add the library. You should check
> with the current GNUstep makefiles, it may have changed.
>
> You may just put a:
>
> LDFLAGS=-lncurses
>
> to have the linker include the /usr/lib/libncurses.a library.
>
> Or you may list it under the OTHER_LIBRARIES variable for your
> application:
>
> APP_NAME=XxxxApp
> XxxxApp_OTHER_LIBRARIES= /usr/lib/libncurses.a
>
>