Problems with static linking of c libraries

Mike Parker aldacron at gmail.com
Fri Jul 15 01:06:11 PDT 2011


On 7/15/2011 12:12 AM, Loopback wrote:
> 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..).

You could also try to compile the C source with DMC. Then it will be in 
the right format to use directly with OPTLINK.


More information about the Digitalmars-d-learn mailing list