Skip to content

How to generate import library for MinGW

Elethom edited this page Mar 22, 2021 · 9 revisions

Please read the document on MingW. http://www.mingw.org/wiki/CreateImportLibraries

Usually, you don't need the import library in MingW.

cd OPENBLAS_TOP_DIR/exports

Edit libopenblas.def. Insert LIBRARY libopenblas.dll to the head, as following.

LIBRARY libopenblas.dll

EXPORTS

   caxpy=caxpy_  @1

   caxpy_=caxpy_  @2

       ...

Then, generate the import library.

dlltool -d libopenblas.def -l libopenblas.a