Article View: es.comp.os.linux.programacion
Article #12090Re: Duda de funcion en Linux
From: Gonzalo Paniagua Javier
Date: Tue, 04 Sep 2001 07:10
Date: Tue, 04 Sep 2001 07:10
16 lines
1807 bytes
1807 bytes
Raul <rauljh@grupobbva.net> escribi�: > tengo este programa que compilado en Win funciona correctamente, pero > al pasarlo a Linux me dice que no entiende la funcion "fmod(a,b)" de > "<math.h>" para calcular el modulo, que segun el manual dice que es ANSI > C, otros dicen que el modulo es "a % b", pero no funciona con ninguno . > �Como lo hago en Linux?; os envio el programa por si sirve de algo: Pues lo he probado y funciona. Ser� que te falta poner en las opciones del gcc que enlace tambi�n con la biblioteca matem�tica. Tienes que a�adir '-lm'. -- "Emacs is a good OS but it lacks a good text editor. That's why I'm using Vim" Anonymous
Technical Details
Message-ID:
<r9u1n9.7n.ln@127.0.0.1>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub2.home.com!news.home.com!howland.erols.net!dc1.nntp.concentric.net!195.206.66.162.MISMATCH!newsfeed.concentric.net!Amsterdam.Infonet!News.Amsterdam.UnisourceCS!news.telia-iberia.com!newsf01.!newsr02..POSTED!not-for-mailReferences:
<3B93E9A9.8C67945@grupobbva.net>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,6e84682e8b664c4b
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-09-04 00:10:36 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub2.home.com!news.home.com!howland.erols.net!dc1.nntp.concentric.net!195.206.66.162.MISMATCH!newsfeed.concentric.net!Amsterdam.Infonet!News.Amsterdam.UnisourceCS!news.telia-iberia.com!newsf01.!newsr02..POSTED!not-for-mail
From: Gonzalo Paniagua Javier <gpanjav@jazzfree.com>
Subject: Re: Duda de funcion en Linux
Newsgroups: es.comp.os.linux.programacion
References: <3B93E9A9.8C67945@grupobbva.net>
User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (Linux/2.4.9-ac3 (i586))
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Message-ID: <r9u1n9.7n.ln@127.0.0.1>
Lines: 17
Date: Tue, 04 Sep 2001 07:10:58 GMT
NNTP-Posting-Host: 62.42.14.67
X-Trace: newsr02. 999587458 62.42.14.67 (Tue, 04 Sep 2001 09:10:58 MET DST)
NNTP-Posting-Date: Tue, 04 Sep 2001 09:10:58 MET DST