Undefined reference to _d_throw

Iain Buclaw ibuclaw at ubuntu.com
Sat Nov 2 07:45:22 PDT 2013


On 2 November 2013 13:53, Jacob Carlborg <doob at me.com> wrote:

> On 2013-11-02 13:54, Steve Teale wrote:
>
>  Thanks Jacob. My next linking problem is that I have lots of undefined
>> externals relating to libpthread. I suspect this may be a CodeBlocks
>> configuration error. I've tried every whichway but have not found a way
>> round this yet. Most frustrating.
>>
>
> How are you compiling? DMD automatically links with libpthread. You can
> pass the -v (verbose) flag to DMD to see what command it uses for linking.
> Otherwise you could try and explicitly link with libpthread:
>
> dmd main.d -L-lpthread
>
>
Really?  I thought that was dmd.conf telling the compiler to do that....


-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20131102/47cc7817/attachment.html>


More information about the Digitalmars-d mailing list