🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41757

Re: GCC won't Link with Math functions

#41757
From: Cord Elias
Date: Fri, 23 Feb 1996 00:00
14 lines
925 bytes
Try the following command-line:

gcc -g -o output_name name.c -lm

I made the experience, that it is important to have
'-lm' at the end of the command-line.


Regards,
Cord


-----------------------------------------------------
Cord Elias             cord@ind.rwth-aachen.de
Technical Details
Message-ID: <4gk2ap$c1@news.rwth-aachen.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4etf9j$c75$1@mhafc.production.compuserve.com> <speed.30.000D35DA@earthlink.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,c8c72a5da0bb27a7
X-Google-Attributes: gid11318c,public
From: Cord Elias <cord@ind.rwth-aachen.de>
Subject: Re: GCC won't Link with Math functions
Date: 1996/02/23
Message-ID: <4gk2ap$c1@news.rwth-aachen.de>
X-Deja-AN: 140673331
references: <4etf9j$c75$1@mhafc.production.compuserve.com> <speed.30.000D35DA@earthlink.net>
content-type: text/plain; charset=us-ascii
organization: RWTH -Aachen / Rechnerbetrieb Informatik
x-url: news:speed.30.000D35DA@earthlink.net
mime-version: 1.0
newsgroups: gnu.gcc.help
x-mailer: Mozilla 1.1N (X11; I; SunOS 5.4 sun4m)