🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42901

pow in gcc

#42901
From: 100664.1467
Date: Fri, 13 Oct 1995 00:00
23 lines
1259 bytes
 y-leong@cehpx17.cen.uiuc.edu (Yingsiong Leong) writes:
>	hi, recently i am writing an application using the independent JPEG
>Group's JPEG routines when i observed a quirk. The program compiles and runs
>well when i use cc to compile but it gives the error of 
>
>	ld.so: Undefined symbol: _pow
>
>when i changed the compiler to gcc (by just changing the CC variable, and the
>rest intact).  Does anyone know why is this the case ?
>
>	Also, another thing i observed.  If i take away the -lm flag, cc will
>not complete the making of the executable, it will complain of undefined
>symbol.  whereas gcc will swallow that complain and complain when the program
>is being loaded.  Is this behaviour related the the earlier described problem ?
>
>	thanks for any insights !!
>
>clement
>

I think y have not included the math lib.
 gcc ... -lm
Technical Details
Message-ID: <45l420$jt0@dub-news-svc-4.compuserve.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,f4501934bafb530e,start
X-Google-Attributes: gid11318c,public
From: <100664.1467@compuserve.com>
Subject: pow in gcc
Date: 1995/10/13
Message-ID: <45l420$jt0@dub-news-svc-4.compuserve.com>
X-Deja-AN: 117523057
organization: CompuServe Incorporated
content-length: 865
content-type: text/plain
newsgroups: gnu.gcc.help