🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SuSE 6.4: gcc +math.h ->ayuda!!

#14879
From: Tomas Sanchez Santos
Date: Sat, 16 Sep 2000 00:00
18 lines
1280 bytes
En es.comp.os.linux.programacion, Serial # 19781010 escribi�:
>Acabo de instalar SuSE 6.4 (full) y al utilizar funciones
>trigonometricas compilando sin m�s (gcc foo.c) obtengo errores en las
>funciones trigonometricas -> no me crea el ejecutable, al
>utilizar la opci�n -O3 ya me compila normal: �es esto normal?,
>�c�mo lo soluciono?
>
>Gracias. Manuel.

Tienes que enlazar el programa con la libreria matematica

gcc -lm foo.c

Saludos
-- 
----------------------------------------------------------
Tomas Sanchez Santos 	tomas-sanchez@NOSPAMworldonline.es
----------------------------------------------------------
Technical Details
Message-ID: <slrn8s7c98.1du.tomas-sanchezNOSPAM@mortadelo.casa>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <9o3orsoe7ch772p7178987e40am4jen8b9@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,3f34e92454d93181
X-Google-Attributes: gidf86c8,public
From: tomas-sanchezNOSPAM@worldonline.es (Tomas Sanchez Santos)
Subject: Re: SuSE 6.4: gcc +math.h ->ayuda!!
Date: 2000/09/16
Message-ID: <slrn8s7c98.1du.tomas-sanchezNOSPAM@mortadelo.casa>
X-Deja-AN: 670587764
Content-Transfer-Encoding: 8bit
References: <9o3orsoe7ch772p7178987e40am4jen8b9@4ax.com>
Content-Type: text/plain; charset=iso-8859-1
X-Trace: fu-berlin.de 969126505 15057481 212.7.52.149 (16 [43504])
Mime-Version: 1.0
User-Agent: slrn/0.9.6.2 (Linux)
Newsgroups: es.comp.os.linux.programacion