Unable to compile OpenGL/C program
Tony Arnold
tony.arnold at manchester.ac.uk
Fri Oct 28 10:29:33 UTC 2011
Arvind,
On 28/10/11 11:19, Arvind S Raj wrote:
> $ alias glc
> alias glc='gcc -lm -lglut -lGL -lGLU'
> $ glc 1_basic.c
You need to put the libraries after the source file so:
gcc 1_basic.c -lm -lglut -lGL -lGLU
With the use of the alias, the source file is coming after the libraries.
Regards,
Tony.
--
Tony Arnold, Tel: +44 (0) 161 275 6093
Head of IT Security, Fax: +44 (0) 705 344 3082
University of Manchester, Mob: +44 (0) 773 330 0039
Manchester M13 9PL. Email: tony.arnold at manchester.ac.uk
More information about the ubuntu-users
mailing list