gcc questions
Dotan Cohen
dotancohen at gmail.com
Sat Nov 26 21:47:43 UTC 2005
On 11/26/05, Markku Kolkka <markkuk at tuubi.net> 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 at iki.fi
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 at 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 at localhost מדעי המחשב]$
Dotan Cohen
http://technology-sleuth.com/long_answer/what_is_a_cellphone.html
More information about the users
mailing list