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
> 

I got this:
$ dmd -fPIC -shared foo.d 
/usr/bin/ld: /usr/lib/libphobos2.a(minfo.o): relocation R_X86_64_32 against 
`.data' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libphobos2.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
--- errorlevel 1

-- 
Jordi Sayol

Reply via email to