View mode: basic / threaded / horizontal-split · Log in · Help
May 21, 2008
link problem: Symbol Undefined .text
Trying to get the G15 LCD SDK working in D.. Converted the Header over 
to D, converted the Lib to Omf... but cant get it to link..

wyverex>dmd test.obj sdk.obj lglcd.obj
OPTLINK (R) for Win32  Release 8.00.1
Copyright (C) Digital Mars 1989-2004  All rights reserved.
lglcd.obj(lglcd)
 Error 42: Symbol Undefined .text
lglcd.obj(lglcd)
 Error 42: Symbol Undefined .debug$F
--- errorlevel 2

Any ideas on what I'm doing wrong?

-Byron
May 22, 2008
Re: link problem: Symbol Undefined .text
user@domain.invalid wrote:
> Trying to get the G15 LCD SDK working in D.. Converted the Header over 
> to D, converted the Lib to Omf... but cant get it to link..
> 
> wyverex>dmd test.obj sdk.obj lglcd.obj
> OPTLINK (R) for Win32  Release 8.00.1
> Copyright (C) Digital Mars 1989-2004  All rights reserved.
> lglcd.obj(lglcd)
>  Error 42: Symbol Undefined .text
> lglcd.obj(lglcd)
>  Error 42: Symbol Undefined .debug$F
> --- errorlevel 2
> 
> Any ideas on what I'm doing wrong?
> 
> -Byron

I found the linker (or at least it seems like it) from VS 6.0.  I ran
link /lib /convert lglcd.lib
WinDiff says only difference is the time stamp.....

When I run coff2omf that lib is half the size....
somethings not right...
May 25, 2008
Re: link problem: Symbol Undefined .text
user@domain.invalid wrote:

> Trying to get the G15 LCD SDK working in D.. Converted the Header over
> to D, converted the Lib to Omf... but cant get it to link..
> 
> wyverex>dmd test.obj sdk.obj lglcd.obj
> OPTLINK (R) for Win32  Release 8.00.1
> Copyright (C) Digital Mars 1989-2004  All rights reserved.
> lglcd.obj(lglcd)
>   Error 42: Symbol Undefined .text
> lglcd.obj(lglcd)
>   Error 42: Symbol Undefined .debug$F
> --- errorlevel 2
> 
> Any ideas on what I'm doing wrong?
> 
> -Byron

iirc there is a static library in the sdk for borland compilers that works.
May 25, 2008
Re: link problem: Symbol Undefined .text
Lutger wrote:
> user@domain.invalid wrote:
> 
>> Trying to get the G15 LCD SDK working in D.. Converted the Header over
>> to D, converted the Lib to Omf... but cant get it to link..
>>
>> wyverex>dmd test.obj sdk.obj lglcd.obj
>> OPTLINK (R) for Win32  Release 8.00.1
>> Copyright (C) Digital Mars 1989-2004  All rights reserved.
>> lglcd.obj(lglcd)
>>   Error 42: Symbol Undefined .text
>> lglcd.obj(lglcd)
>>   Error 42: Symbol Undefined .debug$F
>> --- errorlevel 2
>>
>> Any ideas on what I'm doing wrong?
>>
>> -Byron
> 
> iirc there is a static library in the sdk for borland compilers that works.

I ended up writing a wrapper DLL in VS that I can access with SharedLib.
Its working now.

-Byron
Top | Discussion index | About this forum | D home