September 24, 2009 Re: Linking in an .so on linux with rebuild? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jarrett Billingsley |
Jarrett Billingsley wrote:
> On Wed, Sep 23, 2009 at 1:11 AM, Daniel Keep <daniel.keep.lists@gmail.com> wrote:
>> Now I just have to figure out how to fix THIS:
>>
>> ../build/dsss_objs/D/sandbox.minid_repl.o: In function `_Dmain':
>> sandbox/minid_repl.d:(.text._Dmain+0x6f): undefined reference to
>> `_D5minid11commandline45__T3CLITS5minid11commandline14MDConsoleInputZ3CLI11interactiveMFPS5minid5types8MDThreadZv'
>>
>> I *hate* linker errors. :(
>
> Oh boy, looks like templates are at it again. I'm not sure what the problem is there. Maybe minid.commandline isn't actually being compiled somehow, only imported?
Yeah, I got around it by manually adding minid/commandline.d to the compile line.
|
September 24, 2009 Re: Linking in an .so on linux with rebuild? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Keep | On Wed, Sep 23, 2009 at 11:11 PM, Daniel Keep <daniel.keep.lists@gmail.com> wrote:
>
>
> Jarrett Billingsley wrote:
>> On Wed, Sep 23, 2009 at 1:11 AM, Daniel Keep <daniel.keep.lists@gmail.com> wrote:
>>> Now I just have to figure out how to fix THIS:
>>>
>>> ../build/dsss_objs/D/sandbox.minid_repl.o: In function `_Dmain':
>>> sandbox/minid_repl.d:(.text._Dmain+0x6f): undefined reference to
>>> `_D5minid11commandline45__T3CLITS5minid11commandline14MDConsoleInputZ3CLI11interactiveMFPS5minid5types8MDThreadZv'
>>>
>>> I *hate* linker errors. :(
>>
>> Oh boy, looks like templates are at it again. I'm not sure what the problem is there. Maybe minid.commandline isn't actually being compiled somehow, only imported?
>
> Yeah, I got around it by manually adding minid/commandline.d to the compile line.
>
Weird. Magical build tools sometimes make me nervous.
|
Copyright © 1999-2021 by the D Language Foundation