| View previous topic :: View next topic |
| Author |
Message |
aldacron
Joined: 05 May 2004 Posts: 1066 Location: Seoul, South Korea
|
Posted: Sun Jul 01, 2007 10:03 pm Post subject: Update for DMD 1.018 |
|
|
If you are using DMD 1.018 and finding that some Derelict modules fail to compile, you should update to the current trunk. _________________ The One With D | The One With Aldacron
Last edited by aldacron on Mon Jul 02, 2007 6:55 pm; edited 1 time in total |
|
| Back to top |
|
 |
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Mon Jul 02, 2007 10:21 am Post subject: |
|
|
| It compiles, but on Windows the derelict apps crash at runtime. :-/ Only happens on 1.018 and not 1.017 |
|
| Back to top |
|
 |
aldacron
Joined: 05 May 2004 Posts: 1066 Location: Seoul, South Korea
|
Posted: Mon Jul 02, 2007 6:55 pm Post subject: |
|
|
See this thread. The fix I implemented *should* work. DMD isn't picking up the extern(Windows): and extern(C): statements in the version blocks. _________________ The One With D | The One With Aldacron |
|
| Back to top |
|
 |
vektorboson
Joined: 14 Sep 2006 Posts: 36
|
Posted: Thu Jul 05, 2007 10:30 am Post subject: |
|
|
I've got an ugly workaround for this problem:
In glfuncs.d (and possibly others) put this around the function/pointer declarations:
| Code: |
version(Windows)
const char[] LINKAGE = "extern(Windows):";
else
const char[] LINKAGE = "extern(C):";
mixin( LINKAGE ~ `
...
OpenGL function declarations
...
`);
|
|
|
| Back to top |
|
 |
aldacron
Joined: 05 May 2004 Posts: 1066 Location: Seoul, South Korea
|
Posted: Thu Jul 05, 2007 6:59 pm Post subject: |
|
|
Ah, I never would have thought of that. Not sure I want to go that route though. It would require more than a little bit of restructuring, particularly in DerelictGL. _________________ The One With D | The One With Aldacron |
|
| Back to top |
|
 |
|