Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Mar 1997 04:38:45 -0800 (PST)
From:      " steve  howe" <un_x@hotmail.com>
To:        jmg@hydrogen.nike.efn.org
Cc:        hackers@freebsd.org
Subject:   GNU/BSD
Message-ID:  <199703091238.EAA17047@f24.hotmail.com>

next in thread | raw e-mail | index | archive | help
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
---------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703091238.EAA17047>