Article View: gnu.gcc.help
Article #51662Re: Using the ANSI standard library include files
From: Fergus James HENDERSON
Date: Mon, 19 Apr 1993 16:13
Date: Mon, 19 Apr 1993 16:13
20 lines
1301 bytes
1301 bytes
marek@iiasa.ac.at (Marek MAKOWSKI) writes: >Kevin Bassler (bassler@aura.phys.vt.edu) wrote: >: ld: Undefined symbol >: _exp > >You should have used: >gcc -lm test.c No, you should have used: gcc test.c -lm Actually even better would be to use -Wall as well, and maybe -ansi -pedantic, -Wwrite-strings, etc. -- Fergus Henderson fjh@munta.cs.mu.OZ.AU This .signature virus is a self-referential statement that is true - but you will only be able to consistently believe it if you copy it to your own .signature file!
Technical Details
Message-ID:
<9311002.19710@mulga.cs.mu.OZ.AU>Path:
arc1-ca.pugleaf.net!gmd.de!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjhReferences:
<9304151927.AA10725@life.ai.mit.edu> <1993Apr16.114904.4103@iiasa.ac.at>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,509c27ba02e835e4 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-04-19 09:53:24 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON) Subject: Re: Using the ANSI standard library include files Message-ID: <9311002.19710@mulga.cs.mu.OZ.AU> Sender: news@cs.mu.OZ.AU Organization: Computer Science, University of Melbourne, Australia References: <9304151927.AA10725@life.ai.mit.edu> <1993Apr16.114904.4103@iiasa.ac.at> Distribution: gnu Date: Mon, 19 Apr 1993 16:13:09 GMT Lines: 20