www.digitalmars.com         C & C++   DMDScript  

D.gnu - GLFW Problem

reply revcompgeek<revcompgeek NOSPAM.gmail.com> writes:
After making a few modifications to the GLFW D bindings, I am attempting
to compile a port of GLFW Lesson 1 from the tutorials page. It compiles
fine, but I get linker errors:
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
__D2gl10glViewportFiiiiZv
__D2gl12glClearColorFffffZv
__D2gl12glMatrixModeFkZv
__D2gl14glLoadIdentityFZv
__D2gl7glClearFkZv
__D3glu14gluPerspectiveFddddZv
__D3glu9gluLookAtFdddddddddZv
__D4glfw10glfwEnableFiZv
__D4glfw10glfwGetKeyFiZi
__D4glfw11glfwGetTimeFZd
__D4glfw13glfwTerminateFZv
__D4glfw14glfwOpenWindowFiiiiiiiiiZi
__D4glfw15glfwSwapBuffersFZv
__D4glfw17glfwGetWindowSizeFPiPiZv
__D4glfw18glfwGetWindowParamFiZi
__D4glfw18glfwSetWindowTitleFPaZv
__D4glfw8glfwInitFZi
__D6object6Object5printMFZv
__D6object6Object8toStringMFZAa

I am using dsss to build it, the dsss.conf file looks like this:

[program.d]
buildflags=-llglfw -framework OpenGL -framework AGL -framework Carbon

It doesn't make sence to me.
Jan 18 2008
parent revcompgeek<revcompgeek NOSPAM.gmail.com> writes:
Strange, I did a "dsss clean" and "dsss distclean" command, and now I am
getting these errors:
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../../include/d/4.0.1/tango/text/c
nvert/Layout.d:527: Error: no property 'toString' for type
'object.TypeInfo'/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../../include/d/4.0.1/tango/text/c
nvert/Layout.d:527: function
tango.text.convert.Layout.Layout!(char).Layout.fromUtf8 (char[],char[]) does
not match parameter types
(int,char[])/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../../include/d/4.0.1/tango/text/c
nvert/Layout.d:527: Error: cannot implicitly convert
expression (1) of type int to char[]Error: cannot cast int to char[]
/usr/bin/../include/d/4.0.1/tango/io/Console.d:267: Error: no property
'toString' for type 'object.Object'/usr/bin/../include/d/4.0.1/tan
o/io/Console.d:267: function
tango.io.Console.Console.Output.append (char[]) does not match parameter types
(int)/usr/bin/../include/d/4.0.1/tango/io/Console.d:267: Error: cannot
implicitly convert expression (1) of type int to object.ObjectError: cannot
cast int to object.Object
Command /usr/bin/rebuild returned with code 256, aborting.
Error: Command failed, aborting.

Is my version of Tango screwed up?
Jan 18 2008