🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: problems with GCC

#9
From: Thomas H. Robey
Date: Wed, 17 Apr 1996 13:41
14 lines
1013 bytes
In article <4l1and$iql@news.ran.es>,
   chano@ran.es (Chano Gómez Martínez) wrote:
-First of all, I want to apologize for my awful English.
-
-Now, the C stuff :
-
-I'm trying to port a C program from Borland C++ 3.1 to GCC under
-Linux.
-My problem is that I can't use any function from math.h !!!

Try -lm on the link line.  The problem is that libm.a (the math library) is 
not being linked into your program, so no math functions are resolved.  You 
may also have to tell the linker where libm.a is located if it isn't in one of 
the standard places.
Technical Details
Message-ID: <4l2se7$894_002@arc.unm.edu>
Path: arc1-ca.pugleaf.net!taos.arc.unm.edu!slip-1
References: <4l1and$iql@news.ran.es>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!taos.arc.unm.edu!slip-1
From: trobey@arc.unm.edu (Thomas H. Robey)
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 96 13:41:27 GMT
Organization: Spectra Research Institute
Message-ID: <4l2se7$894_002@arc.unm.edu>
References: <4l1and$iql@news.ran.es>
NNTP-Posting-Host: slip-1.arc.unm.edu
X-Newsreader: News Xpress Version 1.0 Beta #4