Problems with static linking of c libraries

Loopback elliott.darfink at gmail.com
Thu Jul 14 08:12:38 PDT 2011


On 2011-07-14 17:06, Danny Arends wrote:
> Wow THANX,
> Using the COFF2OMF tool at least got me a step further, now it finds and accepts the lib files,
> however, it now fails with the following error:
>
> OPTLINK (R) for Win32  Release 8.00.12
> Copyright (C) Digital Mars 1989-2010  All rights reserved.
> http://www.digitalmars.com/ctg/optlink.html
> lapack.lib(lapack)  Offset B24AEH Record Type 009D
>   Error 16: Index Range
> --- errorlevel 1
>
> Any suggestions, on how to fix this error ?

My own success have varied depending on which tool that I have used.
COFF2OMF seems to be the one most appropriate with old libraries (such
as VC++ 6.0 and earlier). Coffimplib only works with a few libraries,
(in my own experience) and I have had least success with this tool,
whilst objconv works in most cases. I would recommended to try them
all and see which one that works best for you. If none of them works,
try to use them on different compiled libraries (the one's on the
website and the one's that you have compiled locally etc..).


More information about the Digitalmars-d-learn mailing list