www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - How to set up Derelict?

reply "DFGH" <kthulukthulu gmail.com> writes:
I used this link: http://h3.gd/dmedia/?n=Tutorials.SdlGlTutorial1,
but when i execute the build command i'm receiving the following 
errors:

c:\d\dmd2\src\ext\derelict\opengl\gl.d(114): use of typedef is 
deprecated; use a
lias instead
c:\d\dmd2\src\ext\derelict\opengl\gl.d(114): use of typedef is 
deprecated; use a
lias instead
c:\d\dmd2\src\ext\derelict\util\wintypes.d(57): C-style function 
pointer and poi
nter to array syntax is deprecated. Use 'function' to declare 
function pointers

So, what should i do in order to run my program succesfuly?
Apr 03 2012
next sibling parent David <d dav1d.de> writes:
Am 03.04.2012 13:52, schrieb DFGH:
 I used this link: http://h3.gd/dmedia/?n=Tutorials.SdlGlTutorial1,
 but when i execute the build command i'm receiving the following errors:

 c:\d\dmd2\src\ext\derelict\opengl\gl.d(114): use of typedef is
 deprecated; use a
 lias instead
 c:\d\dmd2\src\ext\derelict\opengl\gl.d(114): use of typedef is
 deprecated; use a
 lias instead
 c:\d\dmd2\src\ext\derelict\util\wintypes.d(57): C-style function pointer
 and poi
 nter to array syntax is deprecated. Use 'function' to declare function
 pointers

 So, what should i do in order to run my program succesfuly?

using dmd 2. You should at least grab Derelict2 or Derelict3 (https://github.com/aldacron/Derelict3) - both work with dmd2.
Apr 03 2012
prev sibling parent Trass3r <un known.com> writes:
 You should at least grab Derelict2 or Derelict3  
 (https://github.com/aldacron/Derelict3) - both work with dmd2.

Exactly. And then just build your app with rdmd.
Apr 03 2012