delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/11/18/06:15:37

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
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
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019