www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - link problem: Symbol Undefined .text

reply user domain.invalid writes:
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 21 2008
next sibling parent wyverex <wyverex.cypher gmail.com> writes:
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 21 2008
prev sibling parent reply Lutger <lutger.blijdestin gmail.com> writes:
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
parent wyverex <wyverex.cypher gmail.com> writes:
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
May 25 2008