undercover
(usa Outra)
Enviado em 02/04/2009 - 20:34h
Valeu stilldre, eu vou ler sobre a readline sim!
Bom, eu tentei compilar o exemplo do link que o gabrield passou, mas aconteceu alguns erros. Segue abaixo o retorno do MAKE.
==================================================================================
undercover@develop:~/Desktop/replimenu-0.9$ make
-e Cleaning "src"...
make[1]: Entrando no diretório `/home/undercover/Desktop/replimenu-0.9/src'
Removing parser.o
Removing readkey.o
Removing replimenu.o
Removing replimenu
make[1]: Saindo do diretório `/home/undercover/Desktop/replimenu-0.9/src'
-e Compiling sources in "src"...
make[1]: Entrando no diretório `/home/undercover/Desktop/replimenu-0.9/src'
gcc -Wall -Wshadow -O2 -DVERSIONSTRING=\"0.9\" -c replimenu.c
In file included from replimenu.c:38:
functions.h: In function ‘file_foreachline’:
functions.h:142: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
functions.h: In function ‘dospecialquit’:
functions.h:998: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result
functions.h:1003: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result
functions.h:1009: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result
functions.h:1012: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result
replimenu.c: In function ‘docommand’:
replimenu.c:802: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result
replimenu.c:807: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result
gcc -Wall -Wshadow -O2 -DVERSIONSTRING=\"0.9\" -c parser.c
gcc -Wall -Wshadow -O2 -DVERSIONSTRING=\"0.9\" -c readkey.c
readkey.c: In function ‘readkey’:
readkey.c:76: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result
gcc -s -o replimenu replimenu.o parser.o readkey.o
make[1]: Saindo do diretório `/home/undercover/Desktop/replimenu-0.9/src'
-e Done.
You may have seen warning messages similar to...
"warning: comparison is always false due to limited range of data type"
Just ignore them, they are not true.
==================================================================================
Alguém pode me ajudar com este exemplo?