status of shared libs
Walter Bright
newshound2 at digitalmars.com
Sat Apr 6 23:03:08 PDT 2013
On 4/6/2013 7:15 PM, Ellery Newcomer wrote:
> 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?
_Dmain is the mangled name for main() in your program.
More information about the Digitalmars-d
mailing list