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>

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

[-- Attachment #1 --]
On Wed, May 23, 2001 at 10:08:43PM +0400, Evgeny wrote:
> Hi there
> 
>  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.

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

[-- Attachment #2 --]
-----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-----
help

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