X-pop3-spooler: POP3MAIL 2.1.0 b 4 980420 -bs- Message-Id: <3.0.32.19980711232836.0097a3f0@xs4all.nl> X-Sender: diep AT xs4all DOT nl (Unverified) X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Sat, 11 Jul 1998 23:28:40 +0100 To: beastium-list AT Desk DOT nl From: Vincent Diepeveen Subject: weird things of gcc Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: Marc Lehmann Status: RO X-Status: A Content-Length: 925 Lines: 40 Hello, Forgive me my criticism, but after setting up linux i now try to compile diep for unix, and i get some weird results trying to compile with the standard gcc in redhat 5.1 (gcc --version gives: 2.7.2.3 ): first of all, why doesn't gcc have a predefined function like msvc++ have called: max() and min()? Further i get completely upset from next warning gnu c++ gives. This is my function: int ReturnFloepWindow(char *sOut) { printf("%s\n",sOut); gets(sOut); return(true); } In the DOS interface of my program this is a function that does all kind of graphical stuff, therefore this function might seem stupid to you, but it's evident what it does. Now gcc gives next warning: "the 'gets' function is dangerous and should not be used." What the #$$##$ does gcc think it's saying to me, am i not allowed to get a string from the keyboard, is there a bug in this function? Why? Greetings, Vincent