FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Update for DMD 1.018

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
aldacron



Joined: 05 May 2004
Posts: 1066
Location: Seoul, South Korea

PostPosted: Sun Jul 01, 2007 10:03 pm    Post subject: Update for DMD 1.018 Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Mon Jul 02, 2007 10:21 am    Post subject: Reply with quote

It compiles, but on Windows the derelict apps crash at runtime. :-/ Only happens on 1.018 and not 1.017
Back to top
View user's profile Send private message AIM Address
aldacron



Joined: 05 May 2004
Posts: 1066
Location: Seoul, South Korea

PostPosted: Mon Jul 02, 2007 6:55 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
vektorboson



Joined: 14 Sep 2006
Posts: 36

PostPosted: Thu Jul 05, 2007 10:30 am    Post subject: Reply with quote

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
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1066
Location: Seoul, South Korea

PostPosted: Thu Jul 05, 2007 6:59 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group