Mail Archives: djgpp/1994/04/18/17:28:52
1. In attempting to compile the curses library for DJGPP I found at OAK
in the file aecur102.zip. I received this error in the compilation of the
individual make files:
D:\GPP257\CONTRIB>make
gcc -O -Iinc -c src/popmenu.c -o objs/popmenu.o
src/popmenu.c: In function `scrollmenul':
src/popmenu.c:49: `va_start' used in function with fixed args
src/popmenu.c: In function `popmenul':
src/popmenu.c:63: `va_start' used in function with fixed args
make.exe: *** [objs/popmenu.o] Error 1
Has anyone compiled this library successfully? If so How can I?
2. If I removed that file. The other programs compile but then when it
attempts to pack them into a library I get this message:
D:\GPP257\CONTRIB>make
ar rv lib/libcurses.a objs objs/alert.o objs/boxwin.o objs/cornerch.o objs/drawb
ox.o objs/expldwin.o objs/line.o objs/mvwin.o objs/pmenuobj.o objs/box.o objs/ca
lcpopy.o objs/printw.o objs/savescr.o objs/overlay.o objs/spooler.o objs/kbbgtas
k.o objs/teechar.o objs/wcentstr.o objs/wdelch.o objs/werase.o objs/wgetstr.o ob
js/matchkey.o objs/waddstr.o objs/winflags.o objs/winsch.o objs/curses.o objs/cu
rstype.o objs/delwin.o objs/newwin.o objs/wclrtoeo.o objs/scroll.o objs/wrefresh
.o objs/cvidintf.o objs/markwin.o objs/memsetw.o objs/ckbdintf.o
Can't open file objs
make.exe: *** [lib/libcurses.a] Error 1
In other words how can I make it ignore the directory name?
this is the makefile include. with object lines deleted for size.
# makefile for Curses! v. 3.X
# this makefile was written for GNUish MAKE
LONGARGS = gcc:ar
VPATH = .;src
CFLAGS = -O -Iinc
ODIR = objs
LIB = lib
$(ODIR)/%.o : %.c
gcc $(CFLAGS) -c $< -o $(ODIR)/$*.o
OBJS = \
$(ODIR)/alert.o \
...
$(ODIR)/ckbdintf.o
$(LIB)/libcurses.a : $(ODIR) $(OBJS)
ar rv $@ $?
ranlib $@
$(ODIR) :
md $(ODIR)
Thanks for any help
Scott Carlson
carlson AT studsys DOT mscs DOT mu DOT edu
- Raw text -