From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
Description of problem:
I have been compiling a C program using the "gcc" available in this
version. I am trying to use the "log10" function normally part of the math.h
library. The compiler does not balk at the "#include " line however it fails to
recognize the function. The same was true of other math.h functions (exp and
log). My compile command line is "gcc filename.c -o output_file". Is there a
bug fix that I need for the libraries or something missing? Thanks.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create filename.c file with "#include <math.h>" and use log10 or log or exp
function in the file (could be in main).
2.Attempt to compile "gcc filename.c -o target_name"
Actual Results: If you don't use any math functions the library will load, but
if you try to use "log10" or "log" or "exp" (and probably all the other math.h
functions) it can't find them, even though it seems to find the library.
Expected Results: Since library is loaded it should recognize these standard C
You need to add -lm to the command line.