X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Tue, 18 Nov 2008 12:15:25 +0100 From: tomas AT tuxteam DOT de To: cygwin AT cygwin DOT com Subject: Re: long math functions on cygwin Message-ID: <20081118111524.GA26249@tomas> References: <4922A0D1 DOT 2070309 AT gmail DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4922A0D1.2070309@gmail.com> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Nov 18, 2008 at 10:02:41PM +1100, Manal Helal wrote: > Hello > > > I am trying to compile some unix code on cygwin, using gcc version: > > ***************************************** > Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs > Configured with: [...] > ***************************************** > /home/user/proj/main.c:907: undefined reference to `_sqrtl' > /home/user/proj/main.c:1743: undefined reference to `_powl' > /home/user/proj/main.c:2006: undefined reference to `_ceill' > /home/user/proj/main.c:2035: undefined reference to `_floorl' > ***************************************** No clue about Windows (and very little about Cygwin), but... isn't a "-lm" (aka link against the math library, libm) missing somewhere? Regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFJIqPMBcgs9XrR2kYRAqOzAJ0deVNznzato3C5vbWglApagkardACZAc8B Nh/0h73FkR8dm7tU5m7frMM= =DLn4 -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/