Thread overview | |||||
---|---|---|---|---|---|
|
November 16, 2013 implib with mingw-w64 compiled DLL | ||||
---|---|---|---|---|
| ||||
Hello there. I'm trying to run implib on a mingw-w64 DLL/.def, both fail. >implib ncursesw.lib ncursesw.def Digital Mars Import Library Manager Version 7.6B1n Copyright (C) Digital Mars 2000. All Rights Reserved. Error(e): Error ncursesw.def(9): error number 80, token: COLORS (it always fails on the same line, no matter what the content) Using the DLL instead: >implib ncursesw.lib ncursesw.dll Digital Mars Import Library Manager Version 7.6B1n Copyright (C) Digital Mars 2000. All Rights Reserved. Error(9): Corrupt NT DLL (too short for export table) The DLL should be a valid DLL. Is it impossible to use implib on MinGW-compiled DLLs? |
November 20, 2013 Re: implib with mingw-w64 compiled DLL | ||||
---|---|---|---|---|
| ||||
Posted in reply to CounterPillow | On Saturday, 16 November 2013 at 17:07:53 UTC, CounterPillow wrote: > Hello there. > > I'm trying to run implib on a mingw-w64 DLL/.def, both fail. > >>implib ncursesw.lib ncursesw.def > Digital Mars Import Library Manager Version 7.6B1n > Copyright (C) Digital Mars 2000. All Rights Reserved. > Error(e): Error ncursesw.def(9): error number 80, token: COLORS > > (it always fails on the same line, no matter what the content) > > Using the DLL instead: > >>implib ncursesw.lib ncursesw.dll > Digital Mars Import Library Manager Version 7.6B1n > Copyright (C) Digital Mars 2000. All Rights Reserved. > Error(9): Corrupt NT DLL (too short for export table) > > The DLL should be a valid DLL. > > Is it impossible to use implib on MinGW-compiled DLLs? If you compiled it using mingw-w64, then you are out of luck in using implib. implib is for creating import libraries for 32 bit dll's. Now, assuming you are wanting to make an import library for usage in DMD64, you can use gendef(http://sourceforge.net/apps/trac/mingw-w64/wiki/gendef) to create the correct .def file, and then use VS's lib.exe to create the import library from the .def file(http://msdn.microsoft.com/en-us/library/vstudio/0b9xe492%28v=vs.120%29.aspx) |
June 22, 2014 Re: implib with mingw-w64 compiled DLL | ||||
---|---|---|---|---|
| ||||
Posted in reply to CounterPillow | Aren't .def files compiled with dlltool? https://sourceware.org/binutils/docs-2.24/binutils/dlltool.html |
Copyright © 1999-2021 by the D Language Foundation