status of shared libs

Ellery Newcomer ellery-newcomer at utulsa.edu
Sat Apr 6 19:15:26 PDT 2013


On 04/05/2013 07:22 PM, Walter Bright wrote:
> On 4/5/2013 7:18 PM, Ellery Newcomer wrote:
>> is there a roadmap for druntime/phobos support of shared libraries?
>>
>> just built dmd from master, and I still can't coax out a 64 bit .so
>
> awaiting:
>
> https://github.com/D-Programming-Language/phobos/pull/1240

trying out the spiffy new shared lib support, I get this:

dmd  -unittest -fPIC -defaultlib=phobos2so -shared test1.d -oflibtest1.so
gcc  test1.c `pwd`/libtest1.so -L/usr/lib64/dmd/ -L/usr/lib/dmd/ -o test1.x
/lib64/libphobos2so.so: undefined reference to `_Dmain'
collect2: error: ld returned 1 exit status


_Dmain? wat?


More information about the Digitalmars-d mailing list