🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #18095

Re: Novato intentando aprender C.

#18095
From: NoP / Compiler
Date: Fri, 01 Oct 1999 00:00
22 lines
1446 bytes
gustavo wrote:
> cc     prog.c   -o prog
> /tmp/cccPdBGy: In function `main':
> /tmp/cccPdBGy(.text+0xe): undefined reference to `sqrt'
> make: *** [prog] Error 1

 necesitas incluir la libreria matematica:

 gcc -o prog prog.c -lm

 salu2.
--
El hombre nunca es demasiado viejo para aprender.

 ------------------------------------------------------------ __ ---
|    NoP / Compiler        -       compiler@iname.com    |   /oo\   |
|--------------------------------------------------------|   (\/)   |
|  POWERED BY - Linux RedHat 6.0  -  Reg. User #74.821   |  / __ \  |
|                                    NoP en IrcHispano   | |\    /| |
|                                                        |_OO __ OO_|
|  <Espacio cedido para publicidad por 100$>                        |
 -------------------------------------------------------------------
Technical Details
Message-ID: <37F46BD3.13700E60@iname.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <873dvw3wwf.fsf@antrumis.i-did-not-set--mail-host-address--so-shoot-me>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f86c8,c87a13ed7a252195
X-Google-Attributes: gidf86c8,public
From: NoP / Compiler <compiler@iname.com>
Subject: Re: Novato intentando aprender C.
Date: 1999/10/01
Message-ID: <37F46BD3.13700E60@iname.com>
X-Deja-AN: 531467685
Content-Transfer-Encoding: 7bit
References: <873dvw3wwf.fsf@antrumis.i-did-not-set--mail-host-address--so-shoot-me>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Compiler Software
Mime-Version: 1.0
Newsgroups: es.comp.os.linux.programacion