Can't find GLU symbols when compiling SimpleGL.d found in GtkD/demos

Enjoys Math enjoysmath at gmail.com
Sun May 19 12:38:41 PDT 2013


On Sunday, 19 May 2013 at 17:16:01 UTC, Mike Wey wrote:
> On 05/19/2013 07:08 PM, Enjoys Math wrote:
>> I've built GtkD from the latest on github and linked with 
>> gtkd.lib
>> gtkdgl.lib and still have the undefined symbols:
>>
>> OPTLINK (R) for Win32  Release 8.00.12
>> Copyright (C) Digital Mars 1989-2010  All rights reserved.
>> http://www.digitalmars.com/ctg/optlink.html
>> Debug\ConsoleApp2.obj(ConsoleApp2)
>>  Error 42: Symbol Undefined _glFlush at 0
>> Debug\ConsoleApp2.obj(ConsoleApp2)
>>  Error 42: Symbol Undefined _gluLookAt at 72
>> Debug\ConsoleApp2.obj(ConsoleApp2)
>>  Error 42: Symbol Undefined _glBegin at 4
>> Debug\ConsoleApp2.obj(ConsoleApp2)
>>  Error 42: Symbol Undefined _glClear at 4
>> Debug\ConsoleApp2.obj(ConsoleApp2)
>>  Error 42: Symbol Undefined _glColor3f at 12
>> Debug\ConsoleApp2.obj(ConsoleApp2)
>>  Error 42: Symbol Undefined _glVertex3f at 12
>> Debug\ConsoleApp2.obj(ConsoleApp2)
>>  Error 42: Symbol Undefined _glEnd at 0
>> Debug\ConsoleApp2.obj(ConsoleApp2)
>>  Error 42: Symbol Undefined _glLoadIdentity at 0
>> Debug\ConsoleApp2.obj(ConsoleApp2)
>>  Error 42: Symbol Undefined _glMatrixMode at 4
>> Debug\ConsoleApp2.obj(ConsoleApp2)
>>  Error 42: Symbol Undefined _glViewport at 16
>> Debug\ConsoleApp2.obj(ConsoleApp2)
>>  Error 42: Symbol Undefined _gluPerspective at 32
>
> Are you linking with opengl and glu ?

You mean in addition to GtkD.lib GtkDGL.lib I should also link 
wigh glu32.lib & opengl32.lib?


More information about the Digitalmars-d-learn mailing list