Thread overview | ||||||
---|---|---|---|---|---|---|
|
January 20, 2006 SymGetLineFromAddr64 | ||||
---|---|---|---|---|
| ||||
I'm trying to use SymGetLineFromAddr64 function (from DbgHelp) but I get: Error 42: Symbol Undefined _SymGetLineFromAddr64@20 I am including: extern(Windows){ BOOL SymGetLineFromAddr64(HANDLE hProcess,DWORD64 dwAddr,PDWORD pdwDisplacement,PIMAGEHLP_LINE64 Line); } What should I do to use it? Damián. |
January 20, 2006 Re: SymGetLineFromAddr64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Damián | On Fri, 20 Jan 2006 17:03:47 -0500, Damián <Damián_member@pathlink.com> wrote: > I'm trying to use SymGetLineFromAddr64 function (from DbgHelp) but I get: > > Error 42: Symbol Undefined _SymGetLineFromAddr64@20 > > I am including: > > extern(Windows){ > BOOL SymGetLineFromAddr64(HANDLE hProcess,DWORD64 dwAddr,PDWORD > pdwDisplacement,PIMAGEHLP_LINE64 Line); > } > > What should I do to use it? > > Damián. > None of the lib files you're passing to the linker/DMD have a reference to that function. Either make a def file for the dll with it under EXPORTS, or use linkdef at http://www.dprogramming.com/linkdef.php , and run the def file through implib to generate the lib file; or if you have a COFF lib (e.g. from a MS compiler) you can use that new COFF->OMF import library converter that comes with DMC. |
January 20, 2006 Re: SymGetLineFromAddr64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Chris Miller | Thanks I will try with linkdef. ------------------------------- >None of the lib files you're passing to the linker/DMD have a reference to that function. Either make a def file for the dll with it under EXPORTS, or use linkdef at http://www.dprogramming.com/linkdef.php , and run the def file through implib to generate the lib file; or if you have a COFF lib (e.g. from a MS compiler) you can use that new COFF->OMF import library converter that comes with DMC. |
January 23, 2006 Re: SymGetLineFromAddr64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Chris Miller | Thats a fun tool linkdef :). Ill have to remember it. Charlie "Chris Miller" <chris@dprogramming.com> wrote in message news:op.s3o6srp4po9bzi@moe... > On Fri, 20 Jan 2006 17:03:47 -0500, Damián <Damián_member@pathlink.com> wrote: > > > I'm trying to use SymGetLineFromAddr64 function (from DbgHelp) but I get: > > > > Error 42: Symbol Undefined _SymGetLineFromAddr64@20 > > > > I am including: > > > > extern(Windows){ > > BOOL SymGetLineFromAddr64(HANDLE hProcess,DWORD64 dwAddr,PDWORD > > pdwDisplacement,PIMAGEHLP_LINE64 Line); > > } > > > > What should I do to use it? > > > > Damián. > > > > None of the lib files you're passing to the linker/DMD have a reference to that function. Either make a def file for the dll with it under EXPORTS, or use linkdef at http://www.dprogramming.com/linkdef.php , and run the def file through implib to generate the lib file; or if you have a COFF lib (e.g. from a MS compiler) you can use that new COFF->OMF import library converter that comes with DMC. |
Copyright © 1999-2021 by the D Language Foundation