🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51713

Re: Using the ANSI standard library include files

#51713
From: Marek MAKOWSKI
Date: Fri, 16 Apr 1993 11:49
27 lines
1688 bytes
Kevin Bassler (bassler@aura.phys.vt.edu) wrote:
: Hello,
: 
: I have recently installed gcc version 2.3.3 on my sun sparcstation ELC 
: running sunos-4.1.3.
: I used default file configuration when I installed gcc. For example the 
: ANSI standard include files appear to be in /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/include.
: 
: My problem is that when I compile a c program that uses functions from the
: ANSI standard library it seems that the library is not found. Do I need to 
: set some compiler option so that gcc looks for those libraries?
: 
.........................................
: gcc test.c
: ld: Undefined symbol
:    _exp
: collect: /usr/bin/ld returned 2 exit status

You should have used:
gcc -lm test.c

Marek Makowski
-- 
                  Marek Makowski  | Email: marek@iiasa.ac.at
         International Institute  | Phone: +43 02236 71.5210
     for Applied System Analysis  | Fax:   +43 02236 71.313
       A-2361 Laxenburg, Austria  | Telex: 079137 iiasa a
Technical Details
Message-ID: <1993Apr16.114904.4103@iiasa.ac.at>
Path: arc1-ca.pugleaf.net!gmd.de!ira.uka.de!sol.ctr.columbia.edu!howland.reston.ans.net!spool.mu.edu!uunet!news.univie.ac.at!iiasa.ac.at!marek
References: <9304151927.AA10725@life.ai.mit.edu>

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-16 04:58:55 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!ira.uka.de!sol.ctr.columbia.edu!howland.reston.ans.net!spool.mu.edu!uunet!news.univie.ac.at!iiasa.ac.at!marek
From: marek@iiasa.ac.at (Marek  MAKOWSKI)
Subject: Re: Using the ANSI standard library include files
Message-ID: <1993Apr16.114904.4103@iiasa.ac.at>
Organization: IIASA, Laxenburg, Austria
X-Newsreader: TIN [version 1.1 PL6]
References: <9304151927.AA10725@life.ai.mit.edu>
Distribution: gnu
Date: Fri, 16 Apr 1993 11:49:04 GMT
Lines: 27