Re: gcc questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/26/05, Markku Kolkka <markkuk@xxxxxxxxx> wrote:
> No. Turbo C is an ancient (latest version is from 1989) compiler
> for 16-bit MS-DOS. It's possible that with careful coding and
> trial and error you might be able to create simple programs that
> compile correctly under both Turbo C and GCC.
>
>  Markku Kolkka
>  markku.kolkka@xxxxxx

For some reason, I cannot use the sqrt function in gcc, even though I
am including the math.h file. Is this missing? Or is sqrt in a
different file?

#include <math.h>
a=sqrt(x);

[dotancohen@localhost מדעי המחשב]$ gcc 1_3.c
/tmp/cc0PB7X5.o(.text+0x18b): In function `main':
1_3.c: undefined reference to `sqrt'
collect2: ld returned 1 exit status
[dotancohen@localhost מדעי המחשב]$


Dotan Cohen
http://technology-sleuth.com/long_answer/what_is_a_cellphone.html


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux