Problem s prekladacom gcc

petr tomasek ostomas na roth.hul.huji.ac.il
Pondělí Únor 8 14:34:44 CET 1999


On Mon, 8 Feb 1999, Jan Varga wrote:

:
:Zdravim vsetkych,
:
:narazil som na mensi problem, ktory potrebujem vyriesit.
:gcc mi nedokaze prelozit nasledovny zdrojovy kod:
:
:-------------------
:#include <stdio.h>
:
:main()
:{
:  char buf[128];
://  fgets(buf,128,stdin);
:  gets(buf);
:  printf("%s",buf);
:}
:
:-------------------
:
:prekladac na to odpoveda chybovou hlaskou:
:
:[varga na frru varga]$ gcc -o pokus pokus.c
:/tmp/cca027891.o: In function `main':
:/tmp/cca027891.o(.text+0xe): the `gets' function is dangerous and should
:not be used.


Tohle je hlaska glibc, obavam se, ze nejde vypnout.

--
Petr Tomasek <tomasek na etf.cuni.cz>
Phone: +972/50/978169

"The current release is year 2000 compliant,
  and the next release will be even more year 2000 compliant."



Další informace o konferenci Linux