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

Cyclic dependency in Derelict2 on OSX (DMD 2.051) (with fix)

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



Joined: 23 Jul 2010
Posts: 8

PostPosted: Sat Jan 01, 2011 7:39 pm    Post subject: Cyclic dependency in Derelict2 on OSX (DMD 2.051) (with fix) Reply with quote

After building the latest Derelict2 on OSX using DMD 2.051, I'm getting a cyclic dependency when I try to run my code:

admin$ ./main
Cyclic dependency in module derelict.sdl.macinit.NSApplication
imported from derelict.sdl.macinit.SDLMain containing module ctor/dtor
imported from (derelict.sdl.macinit.NSString)
imported from (derelict.sdl.macinit.NSMenuItem)
imported from (derelict.sdl.macinit.NSMenu)
imported from derelict.sdl.macinit.NSApplication containing module ctor/dtor
Cycle detected between modules with ctors/dtors:
derelict.sdl.macinit.NSApplication -> derelict.sdl.macinit.SDLMain -> derelict.sdl.macinit.NSApplication
object.Exception: Aborting!

---

I discovered that you can fix this by removing the SDLMain import from NSString, as it doesn't appear to be using it.
Back to top
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Sun Jan 02, 2011 8:25 am    Post subject: Reply with quote

Fixed in http://dsource.org/projects/derelict/changeset/525
Back to top
View user's profile Send private message
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