Calling D function from C
Jonathan Crapuchettes
jcrapuchettes at gmail.com
Wed Apr 23 09:07:22 PDT 2008
/usr/lib/gcc/x86_64-linux-gnu/4.1.3/../../../../lib32/libphobos.a(deh2.o): In
function `_D4deh213__eh_finddataFPvZPS4deh213DHandlerTable':
internal/deh2.d:(.text._D4deh213__eh_finddataFPvZPS4deh213DHandlerTable+0x9):
undefined reference to `_deh_beg'
internal/deh2.d:(.text._D4deh213__eh_finddataFPvZPS4deh213DHandlerTable+0xe):
undefined reference to `_deh_beg'
internal/deh2.d:(.text._D4deh213__eh_finddataFPvZPS4deh213DHandlerTable+0x14):
undefined reference to `_deh_end'
internal/deh2.d:(.text._D4deh213__eh_finddataFPvZPS4deh213DHandlerTable+0x37):
undefined reference to `_deh_end'
collect2: ld returned 1 exit status
Jarrett Billingsley wrote:
> "Jonathan Crapuchettes" <jcrapuchettes at gmail.com> wrote in message
> news:fulp5j$19hu$1 at digitalmars.com...
>
>> /opt/dmd/bin/dmd test.d -c
>> gcc main.c test.o -m32 -o tester -lphobos -lpthread -lm
>> Linker Error...
>
> What _was_ the linker error?
>
>
More information about the Digitalmars-d
mailing list