Poita_
Joined: 23 Jul 2010 Posts: 8
|
Posted: Sat Jan 01, 2011 7:39 pm Post subject: Cyclic dependency in Derelict2 on OSX (DMD 2.051) (with fix) |
|
|
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. |
|