This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
undefined reference to `hypot'
- From: Vladimir Sterjantov <vfs at tersy dot ru>
- To: ecos-discuss at sources dot redhat dot com
- Date: Wed, 18 Sep 2002 17:22:17 +0400
- Subject: [ECOS] undefined reference to `hypot'
- Organization: Tersy Ltd.
- Reply-to: vfs at tersy dot ru
I have a simple question:
Having CYGPKG_LIBM in ecos.ecc, compiling this program, i get message:
undefined reference to `hypot'
There are no problems with `sqrt`,
`sqrt` and `hypot` both in math.h,
but only `sqrt` in my libtarget.a - Why?
#include <math.h>
main() {
double x, y, res;
res = sqrt(x*x + y*y);
res = hypot(x, y);
}
Thank you.
--
Vladimir Sterjantov
Tersy Ltd., Sarov, Russia,
tel. (83130) 45828
mailto:vfs@tersy.ru
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss