Al 24/02/12 11:59, En/na David ha escrit: >> >> Are you able to build dynamic libraries directly with DMD? >> How? > -shared generate shared library >
It compiles to 32-bit but fails for 64-bit, maybe due to compiled libphobos2 (64-bit) without -fPIC argument? Another thing. $ dmd -fPIC -shared foo.d -m32 -offoo.so.0.0.1 generate the incorrect "foo.so.0.0.so" file name. but with: $ dmd -fPIC -shared foo.d -m32 -L-ofoo.so.0.0.1 the correct "foo.so.0.0.1" file name is created. Best regards, -- Jordi Sayol