PDA

Ver la versión completa : conio para gcc de linux



Giskard
27-10-2002, 03:00
Hola
He estado intentando instalar la librería uconio.h para gcc pero no
puedo, sé que es mejor ncurses.h pero en la universidad usan el borland
y es por eso que necesito hacer los fuentes con funciones de conio. Este
es el mensaje que pone al tratar de hacer el 'make all' ¿alquien sabe qué es lo que
puedo hacer para instalarlo?

cd src; make CFLAGS="-Wall -ansi"
make[1]: Cambiando a directorio `/home/othoniel/UConio-1.0.9-PR/src'
gcc -Wall -ansi -I../include -fPIC -c uconio.c
In file included from uconio.c:42:
../include/uconio.h:124:6: warning: no newline at end of file
../include/uconio.h:124:6: warning: no newline at end of file
uconio.c:412:4: warning: no newline at end of file
uconio.c: In function `u_getch':
uconio.c:306: warning: implicit declaration of function `fileno'
uconio.c: In function `u_vputc':
uconio.c:355: `float' is promoted to `double' when passed through `...'
uconio.c:355: (so you should pass `double' not `float' to `va_arg')
uconio.c:371: `chrs' undeclared (first use in this function)
uconio.c:371: (Each undeclared identifier is reported only once
uconio.c:371: for each function it appears in.)
uconio.c: In function `u_vputs':
uconio.c:378: warning: implicit declaration of function `strlen'
make[1]: *** [uconio.o] Error 1
make[1]: Saliendo directorio `/home/othoniel/UConio-1.0.9-PR/src'
make: *** [all] Error 2

Saludos

POSIX
27-10-2002, 10:53
Te lo pone ahi:
uconio.c: In function `u_vputc':
uconio.c:355: `float' is promoted to `double' when passed through `...'
uconio.c:355: (so you should pass `double' not `float' to `va_arg')
Por lo visto no puede pasar un float a va_arg, el u_vputc tomará como argumentos una lista variable de tipo va_list (tipo var, ...). manda un email al desarrolador de esa libreria y se lo preguntas.

Giskard
27-10-2002, 15:54
Ahhh pues si:p
¿por qué no se me había ocurrido?
Gracias, un saludo