🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.setup
Article #10

Re: problems with GCC

#10
From: Glenn Lamb
Date: Wed, 17 Apr 1996 20:15
20 lines
1124 bytes
Chano GĂłmez MartĂ­nez wrote:
> 
[snip]
> 
> /tmp/cca000971.o(.text+0x39): undefined reference to `exp'
> 
> The funny thing is that GPC ( the GNU Pascal compiler ) allows me to
> use math.h functions lihe exp(), sin(), fabs(), etc, but when I
> convert my Pascal programs to C with p2c and try to compile them with
> GCC , I get the same error again.

are you linking in the math library?
$ gcc file.c -o file -lm

[snip]

-- 
Glenn Lamb
System's Administrator
glenn@sec.sel.sony.com
Technical Details
Message-ID: <31755173.237C228A@sec.sel.sony.com>
Path: arc1-ca.pugleaf.net!brighton.openmarket.com!decwrl!sony!sonysjc!usenet
References: <4l1and$iql@news.ran.es>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!brighton.openmarket.com!decwrl!sony!sonysjc!usenet
From: Glenn Lamb <glenn@sec.sel.sony.com>
Newsgroups: comp.os.linux.setup,comp.os.linux.misc,comp.os.linux,comp.lang.c,comp.lang.c++
Subject: Re: problems with GCC
Date: Wed, 17 Apr 1996 13:15:47 -0700
Organization: Sony Electronics
Message-ID: <31755173.237C228A@sec.sel.sony.com>
References: <4l1and$iql@news.ran.es>
NNTP-Posting-Host: sfd220.sec.sel.sony.com
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Mailer: Mozilla 2.01 (X11; I; SunOS 4.1.4 sun4c)
To: Chano GĂłmez MartĂ­nez <chano@ran.es>