Forum » Programiranje » [C] branje vrstice
[C] branje vrstice
toni16 ::
int main(int argc, char** argv) { char* vpis; vpis=readline("vpisi besedo: ");//preberemo besedo printf("Beseda je: %s\n",vpis); return 0; }
če prevedem z gcc -lreadline mi napiše to:
toni@cmb51-104:~/OSPO/vaje1/03$ gcc 03.c 03.c:3:31: error: readline/readline.h: No such file or directory 03.c: In function ‘main’: 03.c:17: warning: assignment makes pointer from integer without a cast toni@cmb51-104:~/OSPO/vaje1/03$ gcc 03.c -lreadline 03.c:3:31: error: readline/readline.h: No such file or directory 03.c: In function ‘main’: 03.c:17: warning: assignment makes pointer from integer without a cast
Povejte prosim kako bi to rešil da bi delovalo?
lp toni
edit: dodal st.koda tage in popravil naslov - snow
- spremenilo: snow ()
napsy ::
fgets(stdin);
"If you die, you die. But when you live you live. There is no time to waste."
toni16 ::
Nisem imel nameščenih knjižnic readline/readline.h
sem namestil pa dela tako da zgleda da je problem rešen.
sem namestil pa dela tako da zgleda da je problem rešen.
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | [C] - Spreminjanje programa s pointerjiOddelek: Programiranje | 1181 (933) | DaMachk |
» | C osnovaOddelek: Programiranje | 1544 (1059) | RunoTheDog |
» | [C++] LinuxOddelek: Programiranje | 1956 (1376) | CCfly |
» | K3B problemOddelek: Operacijski sistemi | 1283 (1161) | theD3viL- |
» | tabele in kazalci v CjuOddelek: Programiranje | 1518 (1349) | Ezekiel |