[Gllug] Makefile for OpenGL / GLUT

Henry Gilbert henry.gilbert at gmail.com
Fri Jul 18 13:46:12 UTC 2008


> 2008/7/18 Ian Scott <mriscott at yahoo.co.uk>:
>
>
> It would help if you told us what error you get :-)
>
> The common mistake with makefiles is to mess up the whitespace.  Have you got
> real tabs at the start of the command lines (gcc: and g++: lines)?
>

Here is the error message:

g++ -I/usr/X11R6/include/ %(LIBDIR) ExemploGLSL.cpp -lglut -lGLU -lGL
-lm -lpthread -o ExemploGLSL
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `g++ -I/usr/X11R6/include/ %(LIBDIR)
ExemploGLSL.cpp -lglut -lGLU -lGL -lm -lpthread -o ExemploGLSL'
make: *** [ExemploGLSL] Error 2

I got real tabs at the start of the gcc and g++ lines

regards

Henry Gilbert
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list