Creating a shared library in D : undefined symbol: _deh_beg

Timo Westkämper" <timo.westkamper at gmail.com> Timo Westkämper" <timo.westkamper at gmail.com>
Sat Mar 31 13:13:53 PDT 2012


I just created a shared library in D using DMD in Ubuntu and run 
into the following error when trying to use it

   undefined symbol: _deh_beg

I found this old thread where it is suggested to create a dummy 
main method : 
http://lists.puremagic.com/pipermail/digitalmars-d/2007-October/026970.html

I did that and it fixed the error, but it doesn't seem quite 
right.

My DMD call looks like this

   dmd -shared -fPIC <DFILES HERE> -I../src -ofbeep.so



More information about the Digitalmars-d mailing list