Does DMD produce working programs on Snow Leopard?
Justin Whear
justin at economicmodeling.com
Mon Nov 2 10:08:19 PST 2009
I've been trying to get some SDL windowing code to run on Snow Leopard and been getting mysterious bus errors. After some poking around, I think the problems are rather more fundamental in nature. Observe the following code:
module test1;
import std.stdio;
void main() {
B b = new B();
}
class B {
this() {
writefln("Constructed B");
}
}
If I use "dmd -run test1.d" I get nothing. No compilation problems, no errors, and no "Constructed B".
If I use "dmd test1.d && ./test1" I get "Segmentation fault".
Using "gdb test1" to produce a backtrace reveals this:
#0 0x0000287a in D3std11asserterror11AssertError5_ctorMFAakZC3std11asserterror11AssertError ()
#1 0x0000283e in _Dmain ()
#2 0x0001638d in main ()
All this is with dmd 1.050 on a Mac Mini running Mac OS X 10.6.1. I believe this is the OS X version that most of my end-users (associates) are using, so I need to target it. Is DMD going to be updated to produce working binaries on this system?
More information about the Digitalmars-d
mailing list