Forum Navigation
"Hello world" won't link on OS X
Moderators:
kris
Posted: 09/20/07 23:47:49I installed Tango using DSSS on my OS X box. The install went cleanly, but I can't compile a simple "hello world" app:
import tango.io.Stdout; void main() { Stdout.formatln("Hello world"); }Here's what I get:
$ gdmd -version=Posix test.d /usr/bin/ld: Undefined symbols: __D5tango2io5Print12__T5PrintTaZ5Print8formatlnMFAaYC5tango2io5Print12__T5PrintTaZ5Print __D5tango2io6Stdout12__ModuleInfoZ __D5tango2io6Stdout6StdoutC5tango2io5Print12__T5PrintTaZ5Print collect2: ld returned 1 exit statusWhen I look at /usr/lib/libgphobos.a with nm, there are lots and lots of Tango symbols, but not those. Any ideas? Maybe DSSS isn't the right way to build Tango on OS X after all.