Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2001 12:14:11 -0700
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Evgeny <wmdenhome@mail.ru>
Cc:        freebsd-doc@FreeBSD.ORG
Subject:   Re: OpenGL in FreeBSD
Message-ID:  <20010523121411.A16925@Odin.AC.HMC.Edu>
In-Reply-To: <10922.010523@mail.ru>; from wmdenhome@mail.ru on Wed, May 23, 2001 at 10:08:43PM %2B0400
References:  <10922.010523@mail.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010523121411.A16925>