From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: "Dmitry V. Levin" To: Linux-Mandrake Russian Edition Mailing List Subject: Re: [mdk-re] math.h Message-ID: <20010222063748.A12893@LDV.fandra.org> Mail-Followup-To: "Dmitry V. Levin" , Linux-Mandrake Russian Edition Mailing List References: <20010221192117.A44C93A3@earth.universe> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BOKacYhQ+x31HxR3" Content-Disposition: inline In-Reply-To: <20010221192117.A44C93A3@earth.universe>; from _troggy_@mtu-net.ru on Wed, Feb 21, 2001 at 10:21:16PM +0300 Sender: mandrake-russian-admin@linuxteam.iplabs.ru Errors-To: mandrake-russian-admin@linuxteam.iplabs.ru X-BeenThere: mandrake-russian@linuxteam.iplabs.ru X-Mailman-Version: 2.0 Precedence: bulk Reply-To: mandrake-russian@linuxteam.iplabs.ru List-Help: List-Post: List-Subscribe: , List-Id: Mandrake/RE discussion list List-Unsubscribe: , List-Archive: Date: Thu Feb 22 06:36:10 2001 X-Original-Date: Thu, 22 Feb 2001 06:37:48 +0300 Archived-At: List-Archive: --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Wed, Feb 21, 2001 at 10:21:16PM +0300, Pavel Marakhovsky wrote: > Начал тут ДЗ делать, и вдруг вот что вылезло: ДЗ под рутом??? > [root@earth /]# gcc -otest2 ./test2.c > /tmp/cc4yA1Yt.o: In function `main': > /tmp/cc4yA1Yt.o(.text+0x14): undefined reference to `sin' > collect2: ld returned 1 exit status Все правильно, вы не включили libm.so: gcc -otest2 ./test2.c -lm Regards, Dmitry +-------------------------------------------------------------------------+ Dmitry V. Levin mailto://ldv@fandra.org Software Engineer PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html IPLabs Linux Team http://linux.iplabs.ru Fandra Project http://www.fandra.org +-------------------------------------------------------------------------+ UNIX is user friendly. It's just very selective about who its friends are. --BOKacYhQ+x31HxR3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6lImMZqIoNiVITrsRArrtAKD3OBU/vibsuF/S4I/+v4wqN+4adgCeIJJD Rdm/AhISdDhVGyH41iT0+KI= =yw3z -----END PGP SIGNATURE----- --BOKacYhQ+x31HxR3--