Re: How to use sqrt() function with gcc?
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Fri, 04 Aug 2006 05:02:50 GMT
John <user@xxxxxxxx> writes:
I'm trying to use the sqrt() function in Linux with GCC v3.3.6,[...]
compiling with this command:
$ gcc sourcefile.c
I get this error:
In function 'main': undefined reference to 'sqrt'
collect2: ld returned 1 exit status
<http://www.c-faq.com/>, question 14.3.
--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
.
- References:
- How to use sqrt() function with gcc?
- From: John
- How to use sqrt() function with gcc?
- Prev by Date: Re: Checking return values for errors, a matter of style?
- Next by Date: Re: code portability
- Previous by thread: Re: How to use sqrt() function with gcc?
- Next by thread: conversion of types.
- Index(es):
Relevant Pages
|
|