From owner-freebsd-doc Wed May 23 12:14:20 2001 Delivered-To: freebsd-doc@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 0D8EB37B424 for ; Wed, 23 May 2001 12:14:18 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id f4NJEBL18159; Wed, 23 May 2001 12:14:11 -0700 Date: Wed, 23 May 2001 12:14:11 -0700 From: Brooks Davis To: Evgeny Cc: freebsd-doc@FreeBSD.ORG Subject: Re: OpenGL in FreeBSD Message-ID: <20010523121411.A16925@Odin.AC.HMC.Edu> References: <10922.010523@mail.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <10922.010523@mail.ru>; from wmdenhome@mail.ru on Wed, May 23, 2001 at 10:08:43PM +0400 Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 23, 2001 at 10:08:43PM +0400, Evgeny wrote: > Hi there >=20 > I use FreeBSD 4.2. > When I compile any OpenGL-program, prints the message: > libGL.so: undefined refference to 'sin' > libGL.so: undefined refference to 'cos' > libGL.so: undefined refference to 'tan' > Why ? > I write in shell: > # gcc -I/usr/X11R6/include -L/usr/X11R6/lib -lGL -lGLU -lglut myprogram.c Add -lm to include the math library (probably after -lglut). -- Brooks P.S. this isn't a FreeBSD question and you should ask them on freebsd-questions@freebsd.org anyway. --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --3V7upXqbjpZ4EhLz 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 iD8DBQE7DAwCXY6L6fI4GtQRAgbMAKCeUye6vCPhv1MBrlNkgczUrOTWmACfUHVz lf2/3ktnGFx4+d8px9rWZn8= =gOCC -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message