[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BOUNCE rtl@rtlinux.org: Approval required: (fwd)
- To: rtl@rtlinux.org
- Subject: BOUNCE rtl@rtlinux.org: Approval required: (fwd)
- From: Der Herr Hofrat <der.herr@hofr.at>
- Date: Thu, 2 Aug 2001 09:54:46 +0200 (CEST)
>From owner-rtl Thu Aug 2 01:45:54 2001
Received: from kanga.hofr.at (N734P031.adsl.highway.telekom.at [62.47.35.191])
by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f727jqs12301
for <rtl@fsmlabs.com>; Thu, 2 Aug 2001 01:45:53 -0600
Received: (from hofrat@localhost)
by kanga.hofr.at (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) id f727k4e23442
for rtl@fsmlabs.com; Thu, 2 Aug 2001 09:46:04 +0200
From: Der Herr Hofrat <der.herr@hofr.at>
Message-Id: <200108020746.f727k4e23442@kanga.hofr.at>
Subject: Re: [rtl] using the sin function in rtlinux
In-Reply-To: <200108012132.RAA17826@puma.me.ttu.edu> from Wayne Dunkel at "Aug
1, 2001 05:32:14 pm"
To: rtl@fsmlabs.com
Date: Thu, 2 Aug 2001 09:46:04 +0200 (CEST)
X-Mailer: ELM [version 2.4ME+ PL60 (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
> I have included math.h in my source file, but gcc says that the reference to sin is undefined. what should I do?
>
including math.h is step 1 but you need to link the libs in aswell so add a
-lm to the linker options ( libm is not included by default !) including
libm requires libc in most (all ?) cases so you will have to add a -lc aswell
and then for gcc to do its magic cleanups add -L/PATH/TO/GCC/LIB -lgcc .
you also need to statically link the libs , so add -static to the ld flags
hofrat
----- End of forwarded message from owner-rtl@fsmlabs.com -----