From owner-freebsd-hackers Sun Mar 9 04:39:27 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA18626 for hackers-outgoing; Sun, 9 Mar 1997 04:39:27 -0800 (PST) Received: from f24.hotmail.com (F24.hotmail.com [207.82.250.35]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA18614 for ; Sun, 9 Mar 1997 04:39:24 -0800 (PST) Received: (from root@localhost) by f24.hotmail.com (8.7.5/8.7.3) id EAA17047; Sun, 9 Mar 1997 04:38:45 -0800 (PST) Date: Sun, 9 Mar 1997 04:38:45 -0800 (PST) Message-Id: <199703091238.EAA17047@f24.hotmail.com> Received: from 137.229.17.253 by www.hotmail.com with HTTP; Sun, 09 Mar 1997 04:38:45 PST X-Originating-IP: [137.229.17.253] From: " steve howe" To: jmg@hydrogen.nike.efn.org Cc: hackers@freebsd.org Subject: GNU/BSD Content-Type: text/plain Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk thanks :). regarding compiler ... (-lm, link math option) \ i see that "man math" is for BSD compiler. but GNU is the installed compiler. i guess i can assume a crossover in the docs - ha? :) thanks very much! \ >> any float function i use (fmod(), log10(), pow10(), pow(), etc) >> give me a link error: >> /var/tmp/cc0076271.o: Undefined symbol '_func()' refernenced from text >> segment ... > >read the math(3) man page.. you have to include the math lib (-lm) when >linking... > >> and regarding "kbhit" - i thought there ought to be some way to >> access hardware flags/registers thru the kernel or some driver >> table ... no? i guess i have much to learn. it does seems slightly >> problematic though to have to always DEPEND on a stream when your >> code could be doing more useful things - instead of waiting. > >take a look at select... and just select on stdin... of course by >default stdin is line buffered.. so you need to disable that... take >a look at termios(4)... I'd highly recommend "Advanced Programming in the >UNIX Environment" by Stevens... ISBN 0-201-56317-7... > >-- >John-Mark > >gurney_j@efn.org >http://resnet.uoregon.edu/~gurney_j/ >Modem/FAX: (541) 683-6954 (FreeBSD Box) > >Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix) --------------------------------------------------------- Get Your *Web-Based* Free Email at http://www.hotmail.com ---------------------------------------------------------